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. --- help/C/figures/zenity-notification-screenshot.png | Bin 0 -> 3104 bytes help/C/l10n_scripts/notification.sh | 5 ++ help/C/zenity.xml | 70 +++++++++++++++++++++- 3 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 help/C/figures/zenity-notification-screenshot.png create mode 100755 help/C/l10n_scripts/notification.sh (limited to 'help/C') diff --git a/help/C/figures/zenity-notification-screenshot.png b/help/C/figures/zenity-notification-screenshot.png new file mode 100644 index 00000000..c1b2c9a1 Binary files /dev/null and b/help/C/figures/zenity-notification-screenshot.png differ diff --git a/help/C/l10n_scripts/notification.sh b/help/C/l10n_scripts/notification.sh new file mode 100755 index 00000000..b7de9aba --- /dev/null +++ b/help/C/l10n_scripts/notification.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +/gnome/head/cvs/zenity/src/zenity --notification \ +--window-icon="info" \ +--text="There are system updates necessary!" diff --git a/help/C/zenity.xml b/help/C/zenity.xml index 9d51f70d..749a7416 100644 --- a/help/C/zenity.xml +++ b/help/C/zenity.xml @@ -115,6 +115,7 @@ Calendar File selection List + Notification Message Error @@ -248,7 +249,10 @@ =icon_path - Specifies the icon that is displayed in the window frame of the dialog. + Specifies the icon that is displayed in the window frame of the dialog. There are + 4 stock icons also available by providing the following keywords - 'info', 'warning', 'question' and + 'error'. + @@ -435,7 +439,8 @@ File Selection Dialog - Use the option to create a file selection dialog. &app; returns the selected files or directories to standard error. + Use the option to create a file selection dialog. &app; returns the selected files or directories to standard + error. The default mode of the file selection dialog is open. The file selection dialog supports the following options: @@ -457,6 +462,20 @@ + + + + Allows only selection of directories in the file selection dialog. + + + + + + + Set the file selection dialog into save mode. + + + =separator @@ -501,6 +520,53 @@ + + + Notification Icon + + + + + + + + =text + + Specifies the text that is displayed in the notification area. + + + + + + + + The following example script shows how to create a notification icon: + + #!/bin/sh + + zenity --notification\ + --window-icon="info" \ + --text="There are system updates necessary!" + + + + +
+ Notification Icon Example + + + + + + + &app; notification icon example + + + +
+ +
+ -- cgit