Commit Graph

22 Commits

Author SHA1 Message Date
Piotr Drąg ab9f2e70e4 password: Replace N_() with regular _()
These two strings show up in English when they should be translated.

https://bugzilla.gnome.org/show_bug.cgi?id=783078
2017-12-04 19:14:06 +01:00
Arx Cruz 4eddb202ca Fix style
Fixing style in all zenity code, removing useless spaces,
empty lines, all code in 80 columns, etc.
2017-04-07 14:00:42 +02:00
Arx Cruz d063797fdf Fixing GLib-CRITICAL messages 2015-10-02 14:35:06 +02:00
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 7c4cd1fc42 src/password.c: Do not use deprecated GtkAlignment widget 2015-03-22 09:16:16 +00:00
Javier Jardón 1f130a37fa password: Use gtk_box instead gtk_[v|h]box 2015-03-22 09:16:16 +00:00
Javier Jardón c1cf0abc21 Do not use stock dialog 2015-03-22 09:16:16 +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 b44b2fb33d Fixing g_timeout_add calls 2014-10-21 16:32:14 +02:00
Arx Cruz 6ac663ea05 Fixing remain g_timeout_add
Finish switch g_timeout_add for g_timeout_add_seconds
2014-10-21 16:06:23 +02:00
Vinicius Silva cdef9c8fa1 Fixing bug #712616 2013-11-25 23:57:35 -02:00
Weitian Leung 009523d5da added attach option for transient window 2013-08-31 00:26:51 -03:00
Florian Müllner 0628bd3291 util: Add an option to request dialogs being modal
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
2012-09-25 18:46:12 -04: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 01bf7956d6 Fix for bug 630885 2010-11-18 14:54:36 -02:00
Luis Medinas 18ed4622ac Add default activation on entry.
Fixes bgo#630884 - Zenity --password dialog doesn't have a default
action
2010-09-29 14:32:01 +01:00
Arx Cruz 7969d942c8 Change GTK_DIALOG(dialog)->vbox to gtk_dialog_get_content_area() in order to compile with GTK 3.0 2010-07-12 12:57:47 -03:00
Arx Cruz 79ea294e0a Just changing the copyright. 2010-07-12 11:20:02 -03:00
Arx Cruz 10d0380220 Add new password dialog 2010-07-12 11:08:26 -03:00