From 1acd9cfed892c8a277199912d099f7c5ff7a94ca Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Sat, 24 May 2003 01:36:24 +0000 Subject: Patch from Dagmar d'Surreal to correct help docs 2003-05-24 Glynn Foster * help/C/zenity.xml: Patch from Dagmar d'Surreal to correct help docs and script examples for the change from --dialog-title to --title. * THANKS, src/about.c: Add Dagmar. * src/progress.c: For now, just send a SIGHUP to the parent process - not entirely sure if this is the best thing to do right now. --- help/C/zenity.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'help/C') diff --git a/help/C/zenity.xml b/help/C/zenity.xml index 6d6257a..e7c9bfb 100644 --- a/help/C/zenity.xml +++ b/help/C/zenity.xml @@ -171,7 +171,7 @@ When using &app;, make sure that any arguments to the command line options are surrounded by - a set of quotes ' ' or " " as in &app; --calendar --dialog-title="Holiday Planner" + a set of quotes ' ' or " " as in &app; --calendar --title="Holiday Planner" , for example. If you do not use quotes, then it is likely that you will get unexpected results. @@ -343,7 +343,7 @@ #!/bin/sh - if zenity --calendar --dialog-title="Calendar selection" --text="Select a date from below" --day=18 --month=1 --year=2003 + if zenity --calendar --title="Calendar selection" --text="Select a date from below" --day=18 --month=1 --year=2003 then echo $? else echo "No date selected" fi @@ -410,7 +410,7 @@ #!/bin/sh - if zenity --entry --dialog-title="Add a new entry" --text="Enter your _Password" --hide-text + if zenity --entry --title="Add a new entry" --text="Enter your _Password" --hide-text then echo $? else echo "No password entered" fi @@ -561,7 +561,7 @@ #!/bin/sh - FILE=`zenity --file-selection --dialog-title="Select a file"' + FILE=`zenity --file-selection --title="Select a file"' case $? in 0) @@ -667,7 +667,7 @@ The following commandline shows an example of how to use the List dialog: - zenity --list --dialog-title="Choose bugs you wish to view" \ + zenity --list --title="Choose bugs you wish to view" \ --text="Select items from the list below." \ --column="Bug Number" --column="Severity" --column="Description" \ 992383 Normal "GtkTreeView crashes on multiple selections" \ @@ -748,7 +748,7 @@ echo "# Rebooting system" ; sleep 1 echo "100" ; sleep 1 ) | - zenity --progress --dialog-title="Update System Logs" --text="Scanning mail logs..." --percentage=0 + zenity --progress --title="Update System Logs" --text="Scanning mail logs..." --percentage=0 if [ "$?" = -1 ] ; then zenity --error --text="Update cancelled." @@ -808,11 +808,11 @@ #!/bin/sh - FILE=`zenity --file-selection --dialog-title="Select a file"' + FILE=`zenity --file-selection --title="Select a file"' case $? in 0) - zenity --text-info --dialog-title=$FILE --editable 2>/tmp/tmp.txt + zenity --text-info --title=$FILE --editable 2>/tmp/tmp.txt 1) echo "No file selected.";; -- cgit v1.2.3-54-g00ecf