this is done to keep the name of the extra buttons
ADD general option "extra-button" with string array as argument
This will upon consecutive calls save the name of buttons in an array of strings
To all MODES, except notification.c and about.c ADD
if (data->extra_label) {
gint i=0;
while(data->extra_label[i]!=NULL){
gtk_dialog_add_button (GTK_DIALOG (dialog), data->extra_label[i], i);
i++;
}
}
This add the extra buttons to the dialog. The response is the number of the button
To all MODES response, except notification.c and about.c ADD
default:
if (response < g_strv_length(zen_data->extra_label))
printf("%s\n",zen_data->extra_label[response]);
This will print the button name to stdout when they are pressed
ADD question option "switch"
This will suppress the standard "ok" and "cancel" button in question. This just wort in combination with --extra-button, otherwise error is raised.
https://bugzilla.gnome.org/show_bug.cgi?id=118016
As WMs cannot open windows themselves, Mutter uses zenity to open
"Force Quit" dialogs for unresponsive windows; as those are strongly
tied to the corresponding window, it makes sense to make them modal
(in particular when attaching them to their parent).
https://bugzilla.gnome.org/show_bug.cgi?id=684322
2007-08-13 Lucas Rocha <lucasr@gnome.org>
* src/*.c: added timeout option to all dialogs (Fixes bug #160654).
Based on patch from Muthiah Annamalai <gnumuthu@users.sf.net>.
svn path=/trunk/; revision=1231
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* src/calendar.c (zenity_calendar, zenity_calendar_double_click):
double-click on day results in dialog response (Fixes bug #395152).
Patch from Tom Tromey <tromey@redhat.com>.
svn path=/trunk/; revision=1209
2005-11-15 Lucas Rocha <lucasr@cvs.gnome.org>
* src/calendar.c, src/progress.c, src/tree.c: make
it possible to add new lines and markup in the dialog
text.
2005-04-25 Glynn Foster <glynn.foster@sun.com>
* COPYING, src/about.c, src/calendar.c, src/eggtrayicon.c,
* src/entry.c, src/fileselection.c, src/main.c, src/msg.c,
* src/notification.c, src/option.c, src/progress.c,
* src/text.c, src/tree.c, src/util.c: Update the FSF address
to point to 51 Franklin Street, Fifth Floor as per forwarded
mail from Alvaro Lopez Ortega.
2005-01-07 Glynn Foster <glynn.foster@sun.com>
* src/option.c, src/calendar.c: Really fix#162297, and
preload the current dates if they aren't already set.
2004-09-13 Glynn Foster <glynn.foster@sun.com>
* 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.
2004-04-26 Glynn Foster <glynn.foster@sun.com>
* THANKS, src/about.c: Add from the 2 Sebastian's, and make
email addresses more spam proof.
* src/calendar.c, src/entry.c, src/fileselection.c, src/msg.c,
* src/progress.c, src/text.c, src/tree.c, src/util.c,
* src/util.h: Patch from Sebastian Kapfer to make all zenity
dialogs transients of the parent xterm. Fixes#136226.
* src/zenity.glade: Patch from Sebastian Heinlein to
improve things HIG wise. Fixes#140745.
2004-03-19 Glynn Foster <glynn.foster@sun.com>
* src/calendar.c, src/entry.c, src/fileselection.c,
src/msg.c, src/progress.c, src/text.c, src/tree.c:
Patch from Darren Adams <darrenadams@dsl.pipex.com> to make
sure the new file chooser resizes nicely. Sanitize the default
setting of the other widgets.
* configure.in, src/util.c: Lose gconf dependancy since we
don't currently use it, although arguably we should to detect
which help browser we're supposed to run :/
* THANKS, src/about.c: Add Darren to the list.
2003-07-11 Kevin C. Krinke <kckrinke@opendoorsoftware.com>
* src/calendar.c, src/entry.c, src/fileselection.c, src/text.c,
src/tree.c: user input data output to STDOUT via g_print instead
of outputting to STDERR via g_printerr. This makes it possible to
destinguish user input data from GTK+ warnings / errors.
* THANKS, src/about.c: I figure this is my second patch submission
so I belong in the credits...
2003-04-13 Glynn Foster <glynn.foster@sun.com>
* src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c,
src/tree.c, src/zenity.h: Finish off the indentation cleanup.
Add new '--width' and '--height' options to the general options.
Fix up the radio list view, so that we can now act like a radio
button group.
* TODO: Update
2003-01-18 Glynn Foster <glynn.foster@sun.com>
* help/C/zenity.xml: Only some examples and some screenshots
and we're mostly done for a first draft.
* src/calendar.c: Don't set the text if it's NULL.
* src/main.c: Swap the order of the commandline dialogs so
that we're alphabetical.
* src/zenity.glade: Add some default strings.
2003-01-13 Glynn Foster <glynn.foster@sun.com>
* src/calendar.c: Re-structure the code to pass in the
ZenityData structure into the response_callback instead.
* src/main.c: Fix the screwups in the commandline parser
due to popt being teh suck.
* src/msg.c: Don't unref the GladeXML before you use it.
* THANKS: New file.
2003-01-09 Glynn Foster <glynn.foster@sun.com>
* src/calendar.c: Fix up the date string, although I guess
this should be localized.
* src/main.c: Add a new --pulsate option, which reads from
stdin and pulsates the progress bar until we reach EOF.
* src/progress.c: Rewrite to actually work. Don't really need
GIOChannels here.
* TODO: Updated accordingly.
2003-01-07 Glynn Foster <glynn.foster@sun.com>
* src/calendar.c, src/entry.c, src/fileselection.c,
src/main.c, src/msg.c, src/progress.c, src/text.c,
src/tree.c, src/zenity.glade, src/zenity.h: Fix up
the response signal handlers. Use returns of 0 for
'Ok' and 'Close', 1 for 'Cancel' and 'Escape' and
-1 for 'Uh Oh'. Get stuff printing to stderr. Fix up
the error handling that I thought was improved,
although still have issues with popt callback getting
called numerous times because of more than one instance
of the same kind is being used in poptOption.
* TODO: Update accordingly.