Logo Search packages:      
Sourcecode: libnotify version File versions  Download package

notification.c File Reference

Detailed Description

Notification object

(C) 2006 Christian Hammond (C) 2006 John Palmieri

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file notification.c.

#include "config.h"
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <libnotify/notify.h>
#include <libnotify/internal.h>
#include <gtk/gtkversion.h>
#include <gdk/gdkx.h>

Go to the source code of this file.


struct  _NotifyNotificationPrivate
struct  CallbackPair


#define CHECK_DBUS_VERSION(major, minor)


enum  {


static void _action_signal_handler (DBusGProxy *proxy, guint32 id, gchar *action, NotifyNotification *notification)
static void _close_signal_handler (DBusGProxy *proxy, guint32 id, guint32 reason, NotifyNotification *notification)
static void _g_value_free (GValue *value)
static gchar ** _gslist_to_string_array (GSList *list)
gint _notify_notification_get_timeout (const NotifyNotification *notification)
gboolean _notify_notification_has_nondefault_actions (const NotifyNotification *n)
static void _notify_notification_update_applet_hints (NotifyNotification *n)
static gboolean _remove_all (void)
static void destroy_pair (CallbackPair *pair)
static GtkWidget * get_internal_tray_icon (GtkStatusIcon *status)
void notify_notification_add_action (NotifyNotification *notification, const char *action, const char *label, NotifyActionCallback callback, gpointer user_data, GFreeFunc free_func)
void notify_notification_attach_to_widget (NotifyNotification *notification, GtkWidget *attach)
static void notify_notification_class_init (NotifyNotificationClass *klass)
void notify_notification_clear_actions (NotifyNotification *notification)
void notify_notification_clear_hints (NotifyNotification *notification)
gboolean notify_notification_close (NotifyNotification *notification, GError **error)
static GObject * notify_notification_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_params)
static void notify_notification_finalize (GObject *object)
gint notify_notification_get_closed_reason (const NotifyNotification *notification)
static void notify_notification_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
static void notify_notification_init (NotifyNotification *sp)
NotifyNotification * notify_notification_new (const gchar *summary, const gchar *body, const gchar *icon, GtkWidget *attach)
void notify_notification_set_category (NotifyNotification *notification, const char *category)
void notify_notification_set_geometry_hints (NotifyNotification *notification, GdkScreen *screen, gint x, gint y)
void notify_notification_set_hint_byte (NotifyNotification *notification, const gchar *key, guchar value)
void notify_notification_set_hint_byte_array (NotifyNotification *notification, const gchar *key, const guchar *value, gsize len)
void notify_notification_set_hint_double (NotifyNotification *notification, const gchar *key, gdouble value)
void notify_notification_set_hint_int32 (NotifyNotification *notification, const gchar *key, gint value)
void notify_notification_set_hint_string (NotifyNotification *notification, const gchar *key, const gchar *value)
void notify_notification_set_hint_uint32 (NotifyNotification *notification, const gchar *key, guint value)
void notify_notification_set_icon_from_pixbuf (NotifyNotification *notification, GdkPixbuf *icon)
static void notify_notification_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
void notify_notification_set_timeout (NotifyNotification *notification, gint timeout)
void notify_notification_set_urgency (NotifyNotification *notification, NotifyUrgency urgency)
gboolean notify_notification_show (NotifyNotification *notification, GError **error)
gboolean notify_notification_update (NotifyNotification *notification, const gchar *summary, const gchar *body, const gchar *icon)


static GObjectClass * parent_class = NULL
static guint signals [LAST_SIGNAL] = { 0 }

Generated by  Doxygen 1.6.0   Back to index