Commit Graph

366 Commits

Author SHA1 Message Date
Alan
3b64d05e8a Fix message dialog width and height on recent Gtk
The fix for Zenity bug 670496 "Zenity info/error windows grow in height
with message length"
(https://bugzilla.gnome.org/show_bug.cgi?id=670496) stopped working on
recent Gtk, which doesn't seem to honor gtk_widget_set_size_request.
This commit workarounds Gtk bug 657621 "Calculate the wrong height of
labels wrapping on words"
(https://bugzilla.gnome.org/show_bug.cgi?id=657621) by setting label's
width-chars and max-width-chars to 60. This magic number was picked from
GtkMessageDialog source
(https://git.gnome.org/browse/gtk+/tree/gtk/ui/gtkmessagedialog.ui#n48).
2017-04-04 15:48:51 +02:00
Arx Cruz
ef14066564 Bug 762347: Addition of entry text width option
This is a bug in the glade file, where the GtkEntry wasn't being filled
to fill the width of the window. There is no need to add a
--entry-text-width option
2017-04-04 15:11:56 +02:00
Matthias Clasen
db4a0c3c0f Fix misleading indentation
Coverity flagged this.

https://bugzilla.gnome.org/show_bug.cgi?id=780217
2017-04-04 13:51:14 +02:00
Tom Schoonjans
61c53a0424 fix compilation when webkitgtk is not installed 2015-10-17 21:11:48 +02:00
Arx Cruz
d063797fdf Fixing GLib-CRITICAL messages 2015-10-02 14:35:06 +02:00
Arx Cruz
fac40e9c46 Fixing html option being parsed to other dialogs rather then text-info 2015-10-02 13:41:57 +02:00
Arx Cruz
9fe89f903f Fixing glade file.
The entry dialog was with wrong box position
2015-10-02 13:39:49 +02:00
Arx Cruz
2ec897cf63 This is a simple build fix 2015-09-21 14:39:42 +02:00
Arx Cruz
95530a1647 Fix zenity --list
For some reason, glade is removing some properties from the xml file
2015-06-23 11:25:29 +02:00
Arx Cruz
6f1deca5c0 Bug #751332 - zenity --forms does not center in the screen 2015-06-23 11:12:40 +02:00
Arx Cruz
abf0777b35 Bug #638582 - zenity --notification --listen can't show multi line tooltip
This create a new function to call the notify_notification_new handling
properly the multi line parser
2015-06-03 13:32:32 +02:00
Arx Cruz
d44ca59780 Add the possibility to pass title and the summary to zenity notification
Now you can use zenity --notification --text="Title\nSummary" and it will
use the first string before the first escape \n as the title, and the rest
of the string as summary text.
2015-06-03 11:57:27 +02:00
Arx Cruz
b5c909902e Bug #672090 - Impossible to confirm --text-info 2015-05-29 20:11:34 +02:00
Arx Cruz
297380bad9 Bug #742963 - Basic notifications do not return 2015-05-29 14:46:37 +02:00
Arx Cruz
160f0442c6 Fix GLib critical messages 2015-05-29 14:29:12 +02:00
Arx Cruz
e6055cc19a Fixing deprecated declarations 2015-05-29 13:55:27 +02:00
Arx Cruz
8fcde2b842 Fix uninitialized progress_bar error 2015-05-29 13:53:25 +02:00
Hristo Venev
ec0a740045 Port to webkit2gtk 2015-05-29 11:12:23 +02:00
Arx Cruz
08e8f3e05d Bug #749359 zenity --list produces incorrect output 2015-05-14 16:54:34 +02:00
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