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>

Go to the source code of this file.

Classes

struct  _NotifyNotificationPrivate
struct  CallbackPair

Defines

#define CHECK_DBUS_VERSION(major, minor)
#define G_PARAM_STATIC_BLURB   0
#define G_PARAM_STATIC_NAME   0
#define G_PARAM_STATIC_NICK   0

Enumerations

enum  { SIGNAL_CLOSED, LAST_SIGNAL }
enum  {
  PROP_0, PROP_SUMMARY, PROP_BODY, PROP_ICON_NAME,
  PROP_ATTACH_WIDGET, PROP_STATUS_ICON
}

Functions

static void _action_signal_handler (DBusGProxy *proxy, guint32 id, gchar *action, NotifyNotification *notification)
static void _close_signal_handler (DBusGProxy *proxy, guint32 id, 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)
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)
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_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)

Variables

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


Generated by  Doxygen 1.6.0   Back to index