summaryrefslogtreecommitdiff
path: root/help/C
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-05-19 18:24:41 +0000
committerGlynn Foster <gman@src.gnome.org>2003-05-19 18:24:41 +0000
commit70ea28f34c25cc21bac51286b7e2c767a2df5807 (patch)
tree1ccd8ea28d9e5a23caa47b3c5b194c612d66dcb9 /help/C
parentc2cd931cd33b54e2730bf6ff9af3fc3129437858 (diff)
downloadzenity-70ea28f34c25cc21bac51286b7e2c767a2df5807.tar.gz
Make the progress dialog actually work and now uses g_io_channel. Woot!
2003-05-19 Glynn Foster <glynn.foster@sun.com> * src/progress.c: Make the progress dialog actually work and now uses g_io_channel. Woot! Need to be able to cancel the dialog, which currently doesn't work too well. * TODO: Update. * help/C/zenity.xml: Update help documentation.
Diffstat (limited to 'help/C')
-rw-r--r--help/C/zenity.xml13
1 files changed, 10 insertions, 3 deletions
diff --git a/help/C/zenity.xml b/help/C/zenity.xml
index 4503a72..6d6257a 100644
--- a/help/C/zenity.xml
+++ b/help/C/zenity.xml
@@ -596,7 +596,8 @@
then your first pieces of data for each row must be either 'TRUE' or 'FALSE'. See
examples below for how to fill data into this dialog. The List dialog may also be
filled by providing data from standard input, column by column, row by row, each
- seperated by a newline.
+ seperated by a newline, however the column headers must appear with the
+ <command>--column</command> option.
</para>
<para>
@@ -683,7 +684,9 @@
<title>Progress</title>
<para>
- To create a Progress dialog, use <command>--progress</command>.
+ To create a Progress dialog, use <command>--progress</command>. Zenity reads data from
+ standard input line by line, determining whether it should update the text (if the
+ line is prefixed with a '#') or the percentage (if the line is a digit).
</para>
<para>
@@ -736,12 +739,16 @@
#!/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 --dialog-title="Update System Logs" --text="Updating mail logs..." --percentage=0
+ zenity --progress --dialog-title="Update System Logs" --text="Scanning mail logs..." --percentage=0
if [ "$?" = -1 ] ; then
zenity --error --text="Update cancelled."