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-03-17 Lucas Rocha <lucasr@gnome.org>
* src/scale.c (zenity_scale): set value range before setting value
in order to correctly set initial state (Fixes bug #521574).
svn path=/trunk/; revision=1337
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-12-13 Lucas Rocha <lucasr@gnome.org>
* data/Makefile.am, data/zenity-scale.png,
src/Makefile.am, src/main.c, src/option.c,
src/option.h, src/scale.c, src/zenity.glade,
src/zenity.h: new scale dialog for selecting a
value from a range (Fixes#322399).