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
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
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.
2004-10-05 James Henstridge <james@jamesh.id.au>
* src/util.c (zenity_util_pixbuf_new_from_file): g_strdown()
modifies the filename, so use strcasecmp() for the comparison
instead. Since we are comparing against fixed ASCII strings,
this should have no UTF-8 issues.
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.
2004-02-29 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/util.c, src/util.h: Remove all the
stupid duplicated code to do the help stuff, and instead
do a simple call for 'yelp ghelp:zenity'. -418, +23. Eeek.
Fixes#135607.
2003-06-04 Glynn Foster <glynn.foster@sun.com>
* src/about.c, src/main.c, src/msg.c,
src/progress.c, src/tree.c, src/util.c: Fix up some build warnings
as reported by Ross Burton and his amazing gcc 3.3 techno machine.
2003-05-05 Glynn Foster <glynn.foster@sun.com>
* src/tree.c, src/util.c, src/util.h: Make the list dialog
handle stdin - a little bit buggy still.
* TODO: Update
2003-01-24 Glynn Foster <glynn.foster@sun.com>
* src/about.c: Provide correct help URL.
* src/util.h, src/util.c: Add functions from
libgnome/gnome-i18n so that we can correctly find the
apropriate help file.
* xmldocs.make: Install help into $(datadir)/help/$(lang)/
* THANKS: Update from the code I stole from libgnome
2003-01-14 Glynn Foster <glynn.foster@sun.com>
* configure.in: Update to add new gconf requirement.
* src/zenity.h, src/about.c: Hurray for a new about box,
although it lacks an icon. I wonder if people would actually
like to see this as part of the dialog options. Can't think
of any reason to do so at the moment though. Large chunks
copied from libgnomeui/gnome-about.[ch]
* src/util.h, src/util.c: Add new helper functions because I
don't want to touch gnome_program with a bargepole. Copied from
libgnome/gnome-url.[ch]
* po/POTFILES.in: Add missing files. I think we have
everything now.
* TODO: Update accordingly.