From f1bf713d0fcd86d38b119d95b276f67245123810 Mon Sep 17 00:00:00 2001 From: Yasumichi Akahoshi Date: Sat, 19 Nov 2011 02:55:00 +0900 Subject: Add mallard pages and update screenshots. Signed-off-by: Yasumichi Akahoshi --- help/C/calendar.page | 68 +++++ help/C/color-selection.page | 55 ++++ help/C/entry.page | 57 ++++ help/C/error.page | 30 +++ .../C/figures/zenity-colorselection-screenshot.png | Bin 0 -> 35025 bytes help/C/figures/zenity-forms-screenshot.png | Bin 0 -> 10000 bytes help/C/figures/zenity-password-screenshot.png | Bin 0 -> 5933 bytes help/C/figures/zenity-scale-screenshot.png | Bin 0 -> 4907 bytes help/C/file-selection.page | 70 +++++ help/C/forms.page | 83 ++++++ help/C/index.page | 25 ++ help/C/info.page | 30 +++ help/C/intro.page | 34 +++ help/C/list.page | 86 ++++++ help/C/message.page | 18 ++ help/C/notification.page | 39 +++ help/C/password.page | 50 ++++ help/C/progress.page | 79 ++++++ help/C/question.page | 30 +++ help/C/scale.page | 80 ++++++ help/C/text.page | 85 ++++++ help/C/usage.page | 292 +++++++++++++++++++++ help/C/warning.page | 30 +++ 23 files changed, 1241 insertions(+) create mode 100644 help/C/calendar.page create mode 100644 help/C/color-selection.page create mode 100644 help/C/entry.page create mode 100644 help/C/error.page create mode 100644 help/C/figures/zenity-colorselection-screenshot.png create mode 100644 help/C/figures/zenity-forms-screenshot.png create mode 100644 help/C/figures/zenity-password-screenshot.png create mode 100644 help/C/figures/zenity-scale-screenshot.png create mode 100644 help/C/file-selection.page create mode 100644 help/C/forms.page create mode 100644 help/C/index.page create mode 100644 help/C/info.page create mode 100644 help/C/intro.page create mode 100644 help/C/list.page create mode 100644 help/C/message.page create mode 100644 help/C/notification.page create mode 100644 help/C/password.page create mode 100644 help/C/progress.page create mode 100644 help/C/question.page create mode 100644 help/C/scale.page create mode 100644 help/C/text.page create mode 100644 help/C/usage.page create mode 100644 help/C/warning.page (limited to 'help/C') diff --git a/help/C/calendar.page b/help/C/calendar.page new file mode 100644 index 00000000..cd2191c2 --- /dev/null +++ b/help/C/calendar.page @@ -0,0 +1,68 @@ + + + + Use the --calendar option. + + Calendar Dialog +

+ Use the --calendar option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date. +

+

+ The calendar dialog supports the following options: +

+ + + + + <cmd>--text</cmd>=<var>text</var> +

Specifies the text that is displayed in the calendar dialog.

+
+ + + <cmd>--day</cmd>=<var>day</var> +

Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.

+
+ + + <cmd>--month</cmd>=<var>month</var> +

Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.

+
+ + + <cmd>--year</cmd>=<var>year</var> +

Specifies the year that is selected in the calendar dialog.

+
+ + + <cmd>--date-format</cmd>=<var>format</var> +

Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. Format must be a format that is acceptable to the strftime function, for example %A %d/%m/%y.

+
+ +
+ +

+ The following example script shows how to create a calendar dialog: +

+ + +#!/bin/sh + + +if zenity --calendar \ +--title="Select a Date" \ +--text="Click on a date to select that date." \ +--day=10 --month=8 --year=2004 + then echo $? + else echo "No date selected" +fi + + + +
+ Calendar Dialog Example + Zenity calendar dialog example + +
+
diff --git a/help/C/color-selection.page b/help/C/color-selection.page new file mode 100644 index 00000000..55402b92 --- /dev/null +++ b/help/C/color-selection.page @@ -0,0 +1,55 @@ + + + + Use the --color-selection option. + + Color Selection Dialog +

+ Use the --color-selection option to create a color selection dialog. +

+

+ The color selection dialog supports the following options: +

+ + + + + <cmd>--color</cmd>=<var>VALUE</var> +

Set the initial color.(ex: #FF0000)

+
+ + + <cmd>--show-palette</cmd> +

Show the palette.

+
+ +
+ +

+ The following example script shows how to create a color selection dialog: +

+ + +#!/bin/sh + +COLOR=`zenity --color-selection --show-palette` + +case $? in + 0) + echo "You selected $COLOR.";; + 1) + echo "No color selected.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ Password Entry Dialog Example + Zenity password entry dialog example + +
+ +
diff --git a/help/C/entry.page b/help/C/entry.page new file mode 100644 index 00000000..69ad4641 --- /dev/null +++ b/help/C/entry.page @@ -0,0 +1,57 @@ + + + + Use the --entry option. + + Text Entry Dialog +

+ Use the --entry option to create a text entry dialog. Zenity returns the contents of the text entry to standard output. +

+

+ The text entry dialog supports the following options: +

+ + + + + <cmd>--text</cmd>=<var>text</var> +

Specifies the text that is displayed in the text entry dialog.

+
+ + + <cmd>--entry-text</cmd>=<var>text</var> +

Specifies the text that is displayed in the entry field of the text entry dialog.

+
+ + + <cmd>--hide-text</cmd> +

Hides the text in the entry field of the text entry dialog.

+
+ +
+ +

+ The following example script shows how to create a text entry dialog: +

+ + +#!/bin/sh + +if zenity --entry \ +--title="Add new profile" \ +--text="Enter name of new profile:" \ +--entry-text "NewProfile" + then echo $? + else echo "No name entered" +fi + + + +
+ Text Entry Dialog Example + Zenity text entry dialog example + +
+
diff --git a/help/C/error.page b/help/C/error.page new file mode 100644 index 00000000..5c9113ac --- /dev/null +++ b/help/C/error.page @@ -0,0 +1,30 @@ + + + + Use the --error option. + + Error Dialog +

+ Use the --error option to create an error dialog. +

+ +

+ The following example script shows how to create an error dialog: +

+ + +#!/bin/bash + +zenity --error \ +--text="Could not find /var/log/syslog." + + + +
+ Error Dialog Example + Zenity error dialog example + +
+
diff --git a/help/C/figures/zenity-colorselection-screenshot.png b/help/C/figures/zenity-colorselection-screenshot.png new file mode 100644 index 00000000..bd9c9bba Binary files /dev/null and b/help/C/figures/zenity-colorselection-screenshot.png differ diff --git a/help/C/figures/zenity-forms-screenshot.png b/help/C/figures/zenity-forms-screenshot.png new file mode 100644 index 00000000..70e50eb5 Binary files /dev/null and b/help/C/figures/zenity-forms-screenshot.png differ diff --git a/help/C/figures/zenity-password-screenshot.png b/help/C/figures/zenity-password-screenshot.png new file mode 100644 index 00000000..987394cb Binary files /dev/null and b/help/C/figures/zenity-password-screenshot.png differ diff --git a/help/C/figures/zenity-scale-screenshot.png b/help/C/figures/zenity-scale-screenshot.png new file mode 100644 index 00000000..902db1f8 Binary files /dev/null and b/help/C/figures/zenity-scale-screenshot.png differ diff --git a/help/C/file-selection.page b/help/C/file-selection.page new file mode 100644 index 00000000..0ec8c5bd --- /dev/null +++ b/help/C/file-selection.page @@ -0,0 +1,70 @@ + + + + Use the --file-selection option. + + File Selection Dialog +

+ Use the --file-selection option to create a file selection dialog. Zenity returns the selected files or directories to standard + output. The default mode of the file selection dialog is open. +

+

+ The file selection dialog supports the following options: +

+ + + + + <cmd>--filename</cmd>=<var>filename</var> +

Specifies the file or directory that is selected in the file selection dialog when the dialog is first shown.

+
+ + + <cmd>--multiple</cmd> +

Allows the selection of multiple filenames in the file selection dialog.

+
+ + + <cmd>--directory</cmd> +

Allows only selection of directories in the file selection dialog.

+
+ + + <cmd>--save</cmd> +

Set the file selection dialog into save mode.

+
+ + + <cmd>--separator</cmd>=<var>separator</var> +

Specifies the string that is used to divide the returned list of filenames.

+
+ +
+ +

+ The following example script shows how to create a file selection dialog: +

+ + +#!/bin/sh + +FILE=`zenity --file-selection --title="Select a File"` + +case $? in + 0) + echo "\"$FILE\" selected.";; + 1) + echo "No file selected.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ File Selection Dialog Example + Zenity file selection dialog example + +
+
diff --git a/help/C/forms.page b/help/C/forms.page new file mode 100644 index 00000000..fcf6c657 --- /dev/null +++ b/help/C/forms.page @@ -0,0 +1,83 @@ + + + + Use the --forms option. + + Forms Dialog +

+ Use the --forms option to create a forms dialog. +

+ +

+ The forms dialog supports the following options: +

+ + + + + <cmd>--add-entry</cmd>=<var>FieldName</var> +

Add a new Entry in forms dialog.

+
+ + + --add-password<cmd></cmd>=<var>FieldName</var> +

Add a new Password Entry in forms dialog. (Hide text)

+
+ + + <cmd>--add-calendar</cmd>=<var>FieldName</var> +

Add a new Calendar in forms dialog.

+
+ + + <cmd>--text</cmd>=<var>TEXT</var> +

Set the dialog text.

+
+ + + <cmd>--separator</cmd>=<var>SEPARATOR</var> +

Set output separator character. (Default: | )

+
+ + + <cmd>--forms-date-format</cmd>=<var>PATTERN</var> +

Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the strftime function, for example %A %d/%m/%y.

+
+ +
+ +

+ The following example script shows how to create a forms dialog: +

+ + +#!/bin/sh + +zenity --forms --title="Add Friend" \ + --text="Enter information about your friend." \ + --separator="," \ + --add-entry="First Name" \ + --add-entry="Family Name" \ + --add-entry="Email" \ + --add-calendar="Birthday" >> addr.csv + +case $? in + 0) + echo "Friend added.";; + 1) + echo "No friend added." + ;; + -1) + echo "An unexpected error has occurred." + ;; +esac + + +
+ Forms Dialog Example + Zenity forms dialog example + +
+
diff --git a/help/C/index.page b/help/C/index.page new file mode 100644 index 00000000..96a9cd0d --- /dev/null +++ b/help/C/index.page @@ -0,0 +1,25 @@ + + + + Sun Java Desktop System Documentation Team + + + Glynn Foster + + + Nicholas Curran + + + + Yasumichi Akahoshi + yasumichi@vinelinux.org + + +Zenity Manual + +
+ Dialogs +
+
diff --git a/help/C/info.page b/help/C/info.page new file mode 100644 index 00000000..1ea62324 --- /dev/null +++ b/help/C/info.page @@ -0,0 +1,30 @@ + + + + Use the --info option. + + Info Dialog +

+ Use the --info option to create an information dialog. +

+ +

+ The following example script shows how to create an information dialog: +

+ + +#!/bin/bash + +zenity --info \ +--text="Merge complete. Updated 3 of 10 files." + + + +
+ Information Dialog Example + Zenity information dialog example + +
+
diff --git a/help/C/intro.page b/help/C/intro.page new file mode 100644 index 00000000..8a7bdec1 --- /dev/null +++ b/help/C/intro.page @@ -0,0 +1,34 @@ + + + + Zenity enables you to create the various types of simple dialog. + +Introduction +

+ Zenity enables you to create the following types of simple dialog: +

+ + +

Calendar

+

File selection

+

Forms

+

List

+

Notification icon

+

Message

+ +

Error

+

Information

+

Question

+

Warning

+
+
+

Password entry

+

Progress

+

Text entry

+

Text information

+

Scale

+

Color selection

+
+
diff --git a/help/C/list.page b/help/C/list.page new file mode 100644 index 00000000..39e86cd4 --- /dev/null +++ b/help/C/list.page @@ -0,0 +1,86 @@ + + + + Use the --list option. + + List Dialog +

+ Use the --list option to create a list dialog. Zenity returns the entries in the first column of text of selected rows to standard output. +

+ +

+ Data for the dialog must specified column by column, row by row. Data can be provided to the dialog through standard input. Each entry must be separated by a newline character. +

+ +

+ If you use the --checklist or --radiolist options, each row must start with either 'TRUE' or 'FALSE'. +

+ +

+ The list dialog supports the following options: +

+ + + + + <cmd>--column</cmd>=<var>column</var> +

Specifies the column headers that are displayed in the list dialog. You must specify a --column option for each column that you want to display in the dialog. +

+
+ + + <cmd>--checklist</cmd> +

Specifies that the first column in the list dialog contains check boxes. +

+
+ + + <cmd>--radiolist</cmd> +

Specifies that the first column in the list dialog contains radio boxes. +

+
+ + + <cmd>--editable</cmd> +

Allows the displayed items to be edited. +

+
+ + + <cmd>--separator</cmd>=<var>separator</var> +

Specifies what string is used when the list dialog returns the selected entries. +

+
+ + + <cmd>--print-column</cmd>=<var>column</var> +

Specifies what column should be printed out upon selection. The default column is + '1'. 'ALL' can be used to print out all columns in the list. +

+
+ +
+ +

+ The following example script shows how to create a list dialog: +

+ +#!/bin/sh + +zenity --list \ + --title="Choose the Bugs You Wish to View" \ + --column="Bug Number" --column="Severity" --column="Description" \ + 992383 Normal "GtkTreeView crashes on multiple selections" \ + 293823 High "GNOME Dictionary does not handle proxy" \ + 393823 Critical "Menu editing does not work in GNOME 2.0" + + + +
+ List Dialog Example + Zenity list dialog example + +
+
diff --git a/help/C/message.page b/help/C/message.page new file mode 100644 index 00000000..a375efa7 --- /dev/null +++ b/help/C/message.page @@ -0,0 +1,18 @@ + + + + + Error, + Info, + Question, + Warning + + + Message Dialog +

+For each type, use the --text option to specify the text that is displayed in the dialog. +

+ +
diff --git a/help/C/notification.page b/help/C/notification.page new file mode 100644 index 00000000..ac556378 --- /dev/null +++ b/help/C/notification.page @@ -0,0 +1,39 @@ + + + + Use the --notification option. + + Notification Icon +

+ Use the --notification option to create a notification icon. +

+ + + + + <cmd>--text</cmd>=<var>text</var> +

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 + Zenity notification icon example + +
+
diff --git a/help/C/password.page b/help/C/password.page new file mode 100644 index 00000000..22094d89 --- /dev/null +++ b/help/C/password.page @@ -0,0 +1,50 @@ + + + + Use the --password option. + + Password Dialog +

+ Use the --password option to create a password entry dialog. +

+

+ The password entry dialog supports the following options: +

+ + + + <cmd>--username</cmd> +

Display the username field.

+
+
+ +

+ The following example script shows how to create a password entry dialog: +

+ + +#!/bin/sh + +ENTRY=`zenity --password --username` + +case $? in + 0) + echo "User Name: `echo $ENTRY | cut -d'|' -f1`" + echo "Password : `echo $ENTRY | cut -d'|' -f2`" + ;; + 1) + echo "Stop login.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ Password Entry Dialog Example + Zenity password entry dialog example + +
+ +
diff --git a/help/C/progress.page b/help/C/progress.page new file mode 100644 index 00000000..caabb16a --- /dev/null +++ b/help/C/progress.page @@ -0,0 +1,79 @@ + + + + Use the --progress option. + + Progress Dialog +

+ Use the --progress option to create a progress dialog. +

+ +

+ Zenity reads data from standard input line by line. If a line is prefixed with #, the text is updated with the text on that line. If a line contains only a number, the percentage is updated with that number. +

+ +

+ The progress dialog supports the following options: +

+ + + + + <cmd>--text</cmd>=<var>text</var> +

Specifies the text that is displayed in the progress dialog.

+
+ + + <cmd>--percentage</cmd>=<var>percentage</var> +

Specifies the initial percentage that is set in the progress dialog.

+
+ + + <cmd>--auto-close</cmd> +

Closes the progress dialog when 100% has been reached.

+
+ + + <cmd>--pulsate</cmd> +

Specifies that the progress bar pulsates until an EOF character is read from standard input.

+
+ +
+ +

+ The following example script shows how to create a progress dialog: +

+ + +#!/bin/sh +( +echo "10" ; sleep 1 +echo "# Updating mail logs" ; sleep 1 +echo "20" ; sleep 1 +echo "# Resetting cron jobs" ; sleep 1 +echo "50" ; sleep 1 +echo "This line will just be ignored" ; sleep 1 +echo "75" ; sleep 1 +echo "# Rebooting system" ; sleep 1 +echo "100" ; sleep 1 +) | +zenity --progress \ + --title="Update System Logs" \ + --text="Scanning mail logs..." \ + --percentage=0 + +if [ "$?" = -1 ] ; then + zenity --error \ + --text="Update canceled." +fi + + + +
+ Progress Dialog Example + Zenity progress dialog example + +
+
diff --git a/help/C/question.page b/help/C/question.page new file mode 100644 index 00000000..6e435c57 --- /dev/null +++ b/help/C/question.page @@ -0,0 +1,30 @@ + + + + Use the --question option. + + Question Dialog +

+ Use the --question option to create a question dialog. +

+ +

+ The following example script shows how to create a question dialog: +

+ + +#!/bin/bash + +zenity --question \ +--text="Are you sure you wish to proceed?" + + + +
+ Question Dialog Example + Zenity question dialog example + +
+
diff --git a/help/C/scale.page b/help/C/scale.page new file mode 100644 index 00000000..7d35b533 --- /dev/null +++ b/help/C/scale.page @@ -0,0 +1,80 @@ + + + + Use the --scale option. + + Scale Dialog +

+ Use the --scale option to create a scale dialog. +

+

+ The scale dialog supports the following options: +

+ + + + + <cmd>--text</cmd>=<var>TEXT</var> +

Set the dialog text. (Default: Adjust the scale value)

+
+ + + <cmd>--value</cmd>=<var>VALUE</var> +

Set initial value. (Default: 0) You must specify value between minimum value to maximum value.

+
+ + + <cmd>--min-value</cmd>=<var>VALUE</var> +

Set minimum value. (Default: 0)

+
+ + + <cmd>--max-value</cmd>=<var>VALUE</var> +

Set maximum value. (Default: 100)

+
+ + + <cmd>--step</cmd>=<var>VALUE</var> +

Set step size. (Default: 1)

+
+ + + <cmd>--print-partial</cmd> +

Print value to standard output, whenever a value is changed.

+
+ + + <cmd>--hide-value</cmd> +

Hide value on dialog.

+
+ +
+ +

+ The following example script shows how to create a scale dialog: +

+ + +#!/bin/sh + +VALUE=`zenity --scale --text="Select window transparency." --value=50` + +case $? in + 0) + echo "You selected $VALUE%.";; + 1) + echo "No value selected.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ Password Entry Dialog Example + Zenity password entry dialog example + +
+ +
diff --git a/help/C/text.page b/help/C/text.page new file mode 100644 index 00000000..f01166ec --- /dev/null +++ b/help/C/text.page @@ -0,0 +1,85 @@ + + + + Use the --text-info option. + + Text Information Dialog +

+ Use the --text-info option to create a text information dialog. +

+ +

+ The text information dialog supports the following options: +

+ + + + + <cmd>--filename</cmd>=<var>filename</var> +

Specifies a file that is loaded in the text information dialog.

+
+ + + <cmd>--editable</cmd> +

Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.

+
+ + + <cmd>--font</cmd>=<var>FONT</var> +

Specifies the text font.

+
+ + + <cmd>--checkbox</cmd>=<var>TEXT</var> +

Enable a checkbox for use like a 'I read and accept the terms.'

+
+ + + <cmd>--html</cmd> +

Enable html support.

+
+ + + <cmd>--url</cmd>=<var>URL</var> +

Sets an url instead of a file. Only works if you use --html option.

+
+ +
+ +

+ The following example script shows how to create a text information dialog: +

+ + +#!/bin/sh + +# You must place file "COPYING" in same folder of this script. +FILE=`dirname $0`/COPYING + +zenity --text-info \ + --title="License" \ + --filename=$FILE \ + --checkbox="I read and accept the terms." + +case $? in + 0) + echo "Start installation!" + # next step + ;; + 1) + echo "Stop installation!" + ;; + -1) + echo "An unexpected error has occurred." + ;; +esac + + +
+ Text Information Dialog Example + Zenity text information dialog example + +
+
diff --git a/help/C/usage.page b/help/C/usage.page new file mode 100644 index 00000000..6aab6005 --- /dev/null +++ b/help/C/usage.page @@ -0,0 +1,292 @@ + + + + You can use Zenity to create simple dialogs that interact graphically with the user. + +Usage +

+ When you write scripts, you can use Zenity to create simple dialogs that interact graphically with the user, as follows: +

+ + +

+ You can create a dialog to obtain information from the user. For example, you can prompt the user to select a date from a calendar dialog, or to select a file from a file selection dialog. +

+
+ +

+ You can create a dialog to provide the user with information. For example, you can use a progress dialog to indicate the current status of an operation, or use a warning message dialog to alert the user. +

+
+
+

+ When the user closes the dialog, Zenity prints the text produced by the dialog to standard output. +

+ + +

+ When you write Zenity commands, ensure that you place quotation marks around each argument. +

+

For example, use:

+ zenity --calendar --title="Holiday Planner" +

Do not use:

+ zenity --calendar --title=Holiday Planner +

+ If you do not use quotation marks, you might get unexpected results. +

+
+ +
+ Access Keys +

+ An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined letter on a menu or dialog option. +

+

+ Some Zenity dialogs support the use of access keys. To specify the character to use as the access key, place an underscore before that character in the text of the dialog. The following example shows how to specify the letter 'C' as the access key: +

+ "_Choose a name". +
+ +
+ Exit Codes +

+ Zenity returns the following exit codes: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Exit Code

+

Description

+

0

+
+

The user has pressed either OK or Close.

+
+

1

+
+

The user has either pressed Cancel, or used the window functions to close the dialog.

+
+

-1

+
+

An unexpected error has occurred.

+
+

5

+
+

The dialog has been closed because the timeout has been reached.

+
+ +
+ + + + +
+ General Options + +

+ All Zenity dialogs support the following general options: +

+ + + + + <cmd>--title</cmd>=<var>title</var> +

Specifies the title of a dialog.

+
+ + + <cmd>--window-icon</cmd>=<var>icon_path</var> +

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'. +

+
+ + + <cmd>--width</cmd>=<var>width</var> +

Specifies the width of the dialog.

+
+ + + <cmd>--height</cmd>=<var>height</var> +

Specifies the height of the dialog.

+
+ + + <cmd>--timeout</cmd>=<var>timeout</var> +

Specifies the timeout in seconds after which the dialog is closed.

+
+ +
+ +
+ + + +
+ Help Options + +

+ Zenity provides the following help options: +

+ + + + + <cmd>--help</cmd> +

Displays shortened help text.

+
+ + + <cmd>--help-all</cmd> +

Displays full help text for all dialogs.

+
+ + + <cmd>--help-general</cmd> +

Displays help text for general dialog options.

+
+ + + <cmd>--help-calendar</cmd> +

Displays help text for calendar dialog options.

+
+ + + <cmd>--help-entry</cmd> +

Displays help text for text entry dialog options.

+
+ + + <cmd>--help-error</cmd> +

Displays help text for error dialog options.

+
+ + + <cmd>--help-info</cmd> +

Displays help text for information dialog options.

+
+ + + <cmd>--help-file-selection</cmd> +

Displays help text for file selection dialog options.

+
+ + + <cmd>--help-list</cmd> +

Displays help text for list dialog options.

+
+ + + <cmd>--help-notification</cmd> +

Displays help text for notification icon options.

+
+ + + <cmd>--help-progress</cmd> +

Displays help text for progress dialog options.

+
+ + + <cmd>--help-question</cmd> +

Displays help text for question dialog options.

+
+ + + <cmd>--help-warning</cmd> +

Displays help text for warning dialog options.

+
+ + + <cmd>--help-text-info</cmd> +

Displays help for text information dialog options.

+
+ + + <cmd>--help-misc</cmd> +

Displays help for miscellaneous options.

+
+ + + <cmd>--help-gtk</cmd> +

Displays help for GTK+ options.

+
+ +
+ +
+ + + +
+ Miscellaneous Options + +

+ Zenity also provides the following miscellaneous options: +

+ + + + + <cmd>--about</cmd> +

Displays the About Zenity dialog, which contains Zenity version information, copyright information, and developer information.

+
+ + + <cmd>--version</cmd> +

Displays the version number of Zenity.

+
+ +
+ +
+ + + +
+ GTK+ Options + +

+ Zenity supports the standard GTK+ options. For more information about the GTK+ options, execute the zenity --help-gtk command. +

+ +
+ + + +
+ Environment Variables + +

+ Normally, Zenity detects the terminal window from which it was launched + and keeps itself above that window. This behavior can be disabled by + unsetting the WINDOWID environment variable. +

+ +
+
diff --git a/help/C/warning.page b/help/C/warning.page new file mode 100644 index 00000000..1b7a642f --- /dev/null +++ b/help/C/warning.page @@ -0,0 +1,30 @@ + + + + Use the --warning option. + + Warning Dialog +

+ Use the --warning option to create a warning dialog. +

+ +

+ The following example script shows how to create a warning dialog: +

+ + +#!/bin/bash + +zenity --warning \ +--text="Disconnect the power cable to avoid electrical shock." + + + +
+ Warning Dialog Example + Zenity warning dialog example + +
+
-- cgit