Commit Graph

377 Commits

Author SHA1 Message Date
Janne Pulkkinen
91a6c185e9 Fix search column selection with --imagelist
When --imagelist is in use, use the second column as the search column,
as is already the case with --checklist and --radiolist.
Any searches until now would only match image path names from the first
column.
2021-07-24 22:01:54 +03:00
Logan Rathbone
b40d9bcb9b about: Remove Zen wisdom of the ancients
This easter egg was disabled more than a decade ago, but zenity is still
installing the image files that were used for it. Let's stop doing that.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2021-06-29 00:22:09 -04:00
Logan Rathbone
8d343b714f meson: bump gtk req. Suppress compiler warning. 2021-06-28 23:17:46 -04:00
Logan Rathbone
ae51b76901 Port build system from autotools to meson. 2021-06-08 22:55:49 -04:00
Javier Jardón
c0c1ca9b7a Fix some compilations warnings 2020-12-18 08:28:41 +00:00
quartenium
cd636315a5 src/forms.c: Fix segfault on multiple lists without values
If was not provided enought list-values for add-list options
then column_types is NULL. Therefore need set it to default
value.
If count of columns values less than count of list values
then set column nubmer to zero.
2019-04-14 18:09:34 +00:00
Aurélio A. Heckert
0f413e6a23 Makes progress to consider the decimal from percent update
Implements stof alternative to atof, to ignore locale settings.

This also helps the time remaining calculation for long tasks.
2018-06-18 18:09:17 -03:00
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
ad6a345133 Formating latest patch 2017-05-26 14:27:44 +02:00
Patrick Griffis
110a851747 Use GtkFileChooserNative 2017-05-26 14:20:01 +02: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
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