Commit Graph

347 Commits

Author SHA1 Message Date
Javier Jardón
d59ce70285 Do not make zenity_util_show_dialog() X11 specific 2015-04-23 10:08:14 +02:00
Piotr Drąg
996711f016 Improve some strings 2015-04-22 00:49:31 +02:00
Arx Cruz
fd024c53e6 option.c: Fixing typo in extra-button option 2015-04-21 14:59:48 +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
Jason Penney
5c9095731e allow build if GDK_WINDOWING_X11 not set 2015-04-21 11:00:41 +02:00
Andreas Mohr
4fe3fa98d9 Bug #734196
--info destroys X11 primary selection content, and does not document that either
2015-04-21 09:56:42 +02:00
Javier Jardón
c45daa96bf src/tree.c: avoid a compilation warning 2015-03-22 09:24:26 +00:00
Javier Jardón
f01d7220db src/tree.c: Do not use deprecated gtk_tree_view_set_rules_hint() 2015-03-22 09:16:17 +00:00
Javier Jardón
a3568bc51b src/notification.c: Remove non-used variable 2015-03-22 09:16:17 +00:00
Javier Jardón
d97b99cfc3 Use GtkScale instead deprecated GtkHScale 2015-03-22 09:16:17 +00:00
Javier Jardón
81d9a261e2 src/zenity.ui: Use GtkBox instead deprecated Gtk[H|V]Box 2015-03-22 09:16:17 +00:00
Javier Jardón
fcb28a3a14 forms: Use GtkGrid instead deprecated GtkTable/GtkAlignment 2015-03-22 09:16:17 +00: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
1cf533964e src/text.c: gtk_widget_override_font instead gtk_widget_modify_font 2015-03-22 09:16:16 +00:00
Javier Jardón
e54c5db6aa src/color.c: Port to GtkColorChooserDialog 2015-03-22 09:16:16 +00:00
Javier Jardón
fba4f05582 Rework zenity_util_set_window_icon* to not use stock images 2015-03-22 09:16:16 +00:00
Javier Jardón
1a43253ac5 Do not use a stock answer for yes/no buttons 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
Javier Jardón
d26aa23e1d src/zenity.ui: Do not use deprecated stock images 2015-03-22 09:16:16 +00:00
Javier Jardón
a1fe6eb88e src/zenity.ui: Do not use deprecated stock buttons 2015-03-22 09:16:16 +00:00
Javier Jardón
03a791abee src/zenity.ui: Changes when open with Glade 3.18.3 2015-03-22 09:12:13 +00:00
Kernc
5b0553e9ef Allow user to interact with --text-info --html WebView
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.
2014-10-22 15:44:38 +02:00
Arx Cruz
b5460887fb Bug #700249 - Progress dialog does not wrap 2014-10-22 15:35:22 +02:00
Arx Cruz
210b073bcd Better sollution for wrap text
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
2014-10-22 15:16:22 +02:00
Arx Cruz
9fdac81d78 Bug #734049 - zenity --text-info chokes on some UTF-8 string
text-info is now seting the text to UTF-8 properly
2014-10-22 11:22:15 +02:00
Kernc
fad5a25dcd Allow --text-info to load resources also from relative file:// URIs 2014-10-22 10:01:23 +02:00
Arx Cruz
15e2759668 Bug #685051 Adding --mid-search option to --list
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'
2014-10-21 18:30:35 +02: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
Kernc
8098bb3dd7 Allow --text-info to load resources from absolute file:// URIs 2014-10-21 15:36:39 +02:00
Scott Pakin
673550b6d3 Added time-remaining support to progress bars
Introduced a --time-remaining command-line option that uses the time
and percent complete to extrapolate the time remaining until progress
reaches 100%.
2014-10-21 15:22:11 +02:00
Emilio Pozuelo Monfort
fc76e0c19b Don't quit zenity when the input stream is closed
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
2014-10-21 11:24:45 +02:00
Arx Cruz
9d03f0d006 Bug 733870 - Segmentation fault on zenity --notification
This fix a problem when user calls --hint=urgency without
specify a :NOTIFY_URGENCY
2014-08-29 14:31:57 +02:00
Arx Cruz
e5eb127e97 Bug #670496 and #673643
This fix the size of GtkLabel width when you have a big
text in the dialog.
2014-05-29 17:51:46 -03:00
Piotr Drąg
c4895ee9a0 Improve grammar in new translatable strings 2014-05-20 21:33:52 +02:00
Arx Cruz
ec0c2f3292 Add the --ellipsize option to info, error, warning and question dialogs
This option will help people who need to add huge texts in their dialogs
and the window size get's very huge due amount of size that GtkLabel
requests
2014-05-20 16:05:32 -03:00
Arx Cruz
86f6329fc1 Fixing deprecated classes in GtkBuilder 2014-05-20 10:50:04 -03:00
Arx Cruz
5ce972d784 Removing some deprecated classes in zenity GtkBuilder file 2014-05-20 10:35:39 -03:00
Arx Cruz
797ef3f1bd Remove deprecated methods.
This remove deprecated methods in about dialog.
Also remove the help button in the about dialog, since wasn't
being used (due the deprecated methods) and keep it just
make the UI ugly.
2014-05-16 18:06:21 -03:00
Daniel Mustieles
3d43541db7 Updated FSF's address 2014-01-31 14:24:40 +01:00
Vinicius Silva
cdef9c8fa1 Fixing bug #712616 2013-11-25 23:57:35 -02:00
Arx Cruz
4681d74c02 Bug #600533 zenity --text-info should have an auto scroll option
This is a request to add a auto-scroll option.
For now it's only works when text-info is getting the
text from stdin.
Example usage:
cat file.txt | zenity --text-info --auto-scroll
2013-11-23 20:32:51 -02:00
Berislav Kovacki
b0fc720fe4 Bug #534935 Need hability to specify default answer in --question dialog 2013-11-23 16:44:26 -02:00
Arx Cruz
80bc8ce643 But #702535 - List box doesn't expand to fill window 2013-10-10 16:52:38 -03:00
Arx Cruz
8888114fed Added combobox support on forms dialog 2013-09-25 09:34:25 -03:00
Weitian Leung
009523d5da added attach option for transient window 2013-08-31 00:26:51 -03:00
Benjamin Berg
58245d4d4a Add a runtime check for X11 (bug #705335)
If GTK+ is compiled with multiple backends, then it is necessary
to do a runtime check for the used backend.
2013-08-05 10:42:11 -03:00