From 3e05834b4c23a5d5951403719b8594ff3d9fe30b Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Mon, 13 Sep 2004 07:51:51 +0000 Subject: Add new notification icon. Update for new files. Restructure code a little 2004-09-13 Glynn Foster * data/Makefile.am, data/zenity-notification.png: Add new notification icon. * src/Makefile.am: Update for new files. * src/about.c, src/calendar.c, src/entry.c, src/fileselection.c, src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a little bit for new utility functions for setting window icons. * src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area support. * src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h: Add support for notification area. * data/zenity.1, help/*: Update docs for notification and new file selection changes. --- data/Makefile.am | 3 ++- data/zenity-notification.png | Bin 0 -> 898 bytes data/zenity.1 | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 data/zenity-notification.png (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index aade652..fd71b4e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -14,7 +14,8 @@ images_DATA = \ zenity-file.png \ zenity-progress.png \ zenity-text.png \ - zenity-entry.png + zenity-entry.png \ + zenity-notification.png man_MANS = zenity.1 diff --git a/data/zenity-notification.png b/data/zenity-notification.png new file mode 100644 index 0000000..6b44ef9 Binary files /dev/null and b/data/zenity-notification.png differ diff --git a/data/zenity.1 b/data/zenity.1 index 17f6eab..3949899 100644 --- a/data/zenity.1 +++ b/data/zenity.1 @@ -43,6 +43,9 @@ Display info dialog .B \-\-list Display list dialog .TP +.B \-\-notification +Display notification icon +.TP .B \-\-progress Display progress indication dialog .TP @@ -152,6 +155,13 @@ Allow changes to text Specify what column to print to standard output. The default is to return the first column. 'ALL' may be used to print all columns. +.PP +Notification options + +.TP +.B \-\-text=STRING +Set the notification text + .PP Progress options @@ -230,6 +240,10 @@ and the text \fIFinding all header files...\fP. .IP find . -name '*.h' | zenity --title "Search Results" --text "Finding all header files.." --column "Files" .PP +Show an icon in the notification area +.IP +zenity --notification --window-icon=update.png --text "System update necessary!" +.PP Display a weekly shopping list in a check list dialog with \fIApples\fP and \fIOranges\fP pre selected .IP zenity --list --checklist --column "Buy" --column "Item" TRUE Apples TRUE Oranges FALSE Pears FALSE Toothpaste -- cgit v1.2.3