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
This commit changes the default --text-view behavior (when --html
is also in effect) so that the clicked links are opened in the
default browser (closes#732626).
Additionally, a new option is introduced, --prevent-interaction,
which disables above behavior.
This fix is a better sollution for info, error, warning and
question dialog.
Now the dialog wraps the text properly, and don't allocate
a lot of height
This will enable users to find a row with a text matching the
middle of the row.
Consider the following list:
Little piggy one
Little piggy two
Little piggy three
As a user I would expect that entering 'th' would focus the last row, because
it's the first one that contains 'th'
Introduced a --time-remaining command-line option that uses the time
and percent complete to extrapolate the time remaining until progress
reaches 100%.
When using --listen for a notification, zenity quits when the stream
ends. This makes it impossible to read commands from a pipe as in
`echo icon:info | zenity --notification --listen'.
https://bugzilla.gnome.org/show_bug.cgi?id=525596