Stripped Down Zenity For MCPI-Reborn
ba5ea0386d
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 |
||
---|---|---|
data | ||
help | ||
m4 | ||
po | ||
src | ||
.bzrignore | ||
.cvsignore | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
ChangeLog.pre-git | ||
configure.ac | ||
COPYING | ||
HACKING | ||
MAINTAINERS | ||
Makefile.am | ||
NEWS | ||
README | ||
THANKS | ||
TODO | ||
zenity.doap |
Zen Understanding - =================== This is zenity - a rewrite of gdialog, the GNOME port of dialog which allows you to display dialog boxes from the commandline and shell scripts. If you understand, things are just as they are. If you don't understand, things are just as they are. This software is licensed under the LGPL. Zen Requirements - ================== scrollkeeper and intltool. gtk+-2.0