summaryrefslogtreecommitdiff
path: root/src/zenity.h
diff options
context:
space:
mode:
authorNuno Araujo <nuno.araujo@russo79.com>2013-02-14 01:08:56 +0100
committerArx Cruz <arxcruz@gnome.org>2013-02-25 20:12:53 -0300
commit74d867c2aa9dde9dc21297c67af9e6432124b054 (patch)
treee78a87385fbcb07e698322c6ae2898f3111ac376 /src/zenity.h
parentbcdb382b6af8f9f47db43c3087dc6a45e5b00913 (diff)
Allow to specify notification's hints
Desktop Notifications Specification [1] specifies that hints can be used to provide extra data to a notification server. A new command line option --hint allows to add a hint to the notification to display. This option can be used multiple times, one for each hint to add. --hint option format is name:value. The new 'hints' command allow to specify hints in 'listen' mode. Same format that in the command line option is used. Several hints can be passed by separating them by '\n'. Hints of value type '(iiibiiay)' are not supported. This value type is used to pass a raw data image as a hint value. This new change is useful for implementing the NotificationSource [2] GNOME Goal. A application using zenity and having a desktop file, can now specify that it is a notification emitter and it's notifications can be filtered in the new Notifications GNOME control panel pane. [1] http://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html#hints [2] https://live.gnome.org/GnomeGoals/NotificationSource https://bugzilla.gnome.org/show_bug.cgi?id=693751
Diffstat (limited to 'src/zenity.h')
-rw-r--r--src/zenity.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenity.h b/src/zenity.h
index 4c94129..7018800 100644
--- a/src/zenity.h
+++ b/src/zenity.h
@@ -136,6 +136,7 @@ typedef struct {
typedef struct {
gchar *notification_text;
gboolean listen;
+ gchar **notification_hints;
} ZenityNotificationData;
#endif