Commit Graph

14 Commits

Author SHA1 Message Date
Arx Cruz
a0fa643f1c Merge branch 'jjardon/no_deprecated'
Conflicts:
	src/msg.c
2015-04-21 13:51:23 +02:00
Gama Anderson
ba5ea0386d ADD gchar **extra_label TO struct ZenityData
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
2015-04-21 13:00:44 +02:00
Javier Jardón
fcb28a3a14 forms: Use GtkGrid instead deprecated GtkTable/GtkAlignment 2015-03-22 09:16:17 +00:00
Javier Jardón
6fcbb80fd1 Do not use an icon for Cancel/OK buttons
GTK+ documentation recommends to not use an icons, but use
"_OK"/"_Cancel" labels instead
2015-03-22 09:16:16 +00:00
Arx Cruz
8888114fed Added combobox support on forms dialog 2013-09-25 09:34:25 -03:00
Arx Cruz
1ac1da63f8 But #674881 - Timeout option overriding normal exit code 2013-03-05 16:56:24 -03:00
Colin Walters
5dd7442bd5 Fix various compiler warnings (two serious)
Missing sentinels can cause crashes.  The others are just style.
2012-08-12 12:20:07 -04:00
Arx Cruz
82d09a41f2 Added support to lists on zenity --forms 2011-12-21 10:22:34 -02:00
Arx Cruz
de35254822 Revert "Initial support for list/tree on --forms option Added zenity --add-list and --list-values on --forms option. This is an initial support. Next steps add support to multiple selections and multiple columns"
This reverts commit ed825cf92b.
2011-10-13 15:21:32 -03:00
Arx Cruz
ed825cf92b Initial support for list/tree on --forms option Added zenity --add-list and --list-values on --forms option. This is an initial support. Next steps add support to multiple selections and multiple columns 2011-10-13 13:44:03 -03:00
Arx Cruz
6768a40e99 Fix for bug #611297 Now Zenity have --ok-label and --cancel-label in all dialogs. This patch doesn't break old zenity scripts. 2011-07-26 14:02:45 -03:00
Arx Cruz
d60e5eeeb3 Now if you use --timeout option, the return code will be properly handled
The default behavior will be done (ie. user click on ok button)
The return code will be 5
2011-06-17 10:51:00 -03:00
Arx Cruz
b39ad33c35 Bug 651948 - zenity list does not return default value when timeout is over 2011-06-16 11:34:01 -03:00
Arx Cruz
54a8e7079a Fix for bug 412493 2010-11-18 14:39:04 -02:00