diff options
author | Ali Abdallah <ali.slackware@gmail.com> | 2009-03-10 12:24:36 +0000 |
---|---|---|
committer | Ali Abdallah <ali.slackware@gmail.com> | 2009-03-10 12:24:36 +0000 |
commit | ee26b480f80211b5bcdb5a21d6df50b05ede0a51 (patch) | |
tree | 6d0eaf623fc385ce321f84a04284c4221da305b1 /src/xfpm-notify.h | |
parent | 02134ec47fb26d943441cf2adef0af5de083dca1 (diff) | |
download | ixfce4-power-manager-ee26b480f80211b5bcdb5a21d6df50b05ede0a51.tar.gz |
Handle critical battery charge+ update on the notifications
(Old svn revision: 6878)
Diffstat (limited to 'src/xfpm-notify.h')
-rw-r--r-- | src/xfpm-notify.h | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/src/xfpm-notify.h b/src/xfpm-notify.h index ac0e9ff5..7a81ecdd 100644 --- a/src/xfpm-notify.h +++ b/src/xfpm-notify.h @@ -24,6 +24,8 @@ #include <glib-object.h> #include <gtk/gtk.h> +#include <libnotify/notify.h> + G_BEGIN_DECLS #define XFPM_TYPE_NOTIFY (xfpm_notify_get_type () ) @@ -32,9 +34,9 @@ G_BEGIN_DECLS typedef enum { + XFPM_NOTIFY_LOW, XFPM_NOTIFY_CRITICAL, - XFPM_NOTIFY_NORMAL, - XFPM_NOTIFY_LOW + XFPM_NOTIFY_NORMAL } XfpmNotifyUrgency; @@ -53,19 +55,35 @@ typedef struct } XfpmNotifyClass; -GType xfpm_notify_get_type (void) G_GNUC_CONST; -XfpmNotify *xfpm_notify_new (void); +GType xfpm_notify_get_type (void) G_GNUC_CONST; +XfpmNotify *xfpm_notify_new (void); -void xfpm_notify_show_notification (XfpmNotify *notify, - const gchar *title, - const gchar *text, - const gchar *icon_name, - gint timeout, - gboolean simple, - XfpmNotifyUrgency urgency, - GtkStatusIcon *icon); +void xfpm_notify_show_notification (XfpmNotify *notify, + const gchar *title, + const gchar *text, + const gchar *icon_name, + gint timeout, + gboolean simple, + XfpmNotifyUrgency urgency, + GtkStatusIcon *icon); +NotifyNotification *xfpm_notify_new_notification (XfpmNotify *notify, + const gchar *title, + const gchar *text, + const gchar *icon_name, + guint timeout, + XfpmNotifyUrgency urgency, + GtkStatusIcon *icon); +void xfpm_notify_add_action_to_notification (XfpmNotify *notify, + NotifyNotification *n, + const gchar *id, + const gchar *action_label, + NotifyActionCallback callback, + gpointer data); +void xfpm_notify_present_notification (XfpmNotify *notify, + NotifyNotification *n, + gboolean simple); G_END_DECLS #endif /* __XFPM_NOTIFY_H */ |