Commit Graph

81 Commits

Author SHA1 Message Date
TheBrokenRail 0016f68829 Add Log Saving 2022-09-30 23:12:13 -04:00
TheBrokenRail b01f0001ea Improve UI 2022-03-12 22:49:56 -05:00
TheBrokenRail 4663a8656d Remove X11 Dependency 2022-03-11 18:09:14 -05:00
TheBrokenRail dc72103c6a Format 2022-03-10 22:37:39 -05:00
TheBrokenRail 6cf0447c3b Strip Down 2022-03-10 22:36:03 -05:00
Logan Rathbone 8b08ea3776 Merge branch 'check-radio-box-fixes' into 'master'
tree: Clicking row should check radio/checkboxes

See merge request GNOME/zenity!16
2021-11-15 15:33:30 +00:00
Logan Rathbone d55fc8a4d1 tree: clicking row should check radio/checkboxes
Addresses #37
2021-08-16 01:01:44 -04:00
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
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 e6055cc19a Fixing deprecated declarations 2015-05-29 13:55:27 +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 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 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 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
Weitian Leung 009523d5da added attach option for transient window 2013-08-31 00:26:51 -03:00
Arx Cruz c89ce9c381 Bug #653468. Fixed by Kurt Miller <kurt@intricatesoftware.com>.
Fix the broken auto-close option in progress and list dialogs.
2013-06-04 16:27:48 -03:00
Arx Cruz 7c234ed9b7 Bug 698683 - Double clicking an item or hitting enter after selecting an item
returns it twice
2013-05-23 16:27:58 -03:00
Arx Cruz 1ac1da63f8 But #674881 - Timeout option overriding normal exit code 2013-03-05 16:56:24 -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 c17eff5863 Added support to --imagelist on tree. Thanks to Joshua Nathaniel Pritikin <jpritikin@pobox.com> now the first column can have an image. 2012-07-19 14:23:48 -03:00
Julian Taylor 127c298ac4 mask the result of g_io_channel_get_flags for the wanted flag 2012-05-08 17:29:42 -03:00
Arx Cruz 4a30be17b3 Bug #673529 Fix segmentation fault in --list option 2012-04-19 11:31:36 -03:00
Arx Cruz fd165dfe19 Bug #668935 - the channel was being freed twice. 2012-01-30 15:56:23 -02: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 7a34df3041 Bug #592195. This fix made the --list mode return as soon as receive an ok or cancel response
avoiding crash.
2011-07-26 10:08:31 -03:00
Arx Cruz 9ab8380ff2 Fix for bug #540489 and #501001 both related to 100% use of cpu. 2011-07-08 11:57:18 -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 ef3a33a142 Fix for bug 540560.
Patch by Victor Ananjevsky <ananasik at gmail dot com>
2011-01-02 22:57:42 -02:00
Philippe Gauthier 1570a2bbf0 Use g_timeout_add_seconds instead g_timeout_add
The calls to g_timeout_add are replaced with g_timeout_add_seconds to
reduce the number or program wake ups. See the GNOME Goal description:
http://live.gnome.org/GnomeGoals/UseTimeoutAddSeconds
2010-05-27 20:49:45 -03:00
Lucas Rocha cf0f0b1668 [list] allow escaped chars as separator 2009-09-16 21:30:46 +01:00
Bryce Harrington 8e190dbb1f Bug 552971 - Add a hide-header option to list dialog 2009-08-10 04:10:53 +01:00
Felix Riemann 3f33966167 Bug 578393 – convert from libglade to GtkBuilder 2009-07-20 10:23:32 +02:00
Lucas Rocha ba29edd134 GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452). Patch from
2009-01-09  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c:
	GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452).
	Patch from Frederic Peters <fpeters@0d.be>.

svn path=/trunk/; revision=1463
2009-01-09 00:14:01 +00:00
Lucas Rocha a740e32652 use g_value_dup_string when applicable (Fixes bug #527258). Patch from
2008-04-10  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c (zenity_tree_dialog_get_selected,
	zenity_tree_dialog_toggle_get_selected): use g_value_dup_string when
	applicable (Fixes bug #527258). Patch from kraai@ftbfs.org.

svn path=/trunk/; revision=1352
2008-04-10 09:57:14 +00:00
Lucas Rocha 8b16d4d412 added timeout option to all dialogs (Fixes bug #160654). Based on patch
2007-08-13  Lucas Rocha  <lucasr@gnome.org>

	* src/*.c: added timeout option to all dialogs (Fixes bug #160654).
	Based on patch from Muthiah Annamalai <gnumuthu@users.sf.net>.

svn path=/trunk/; revision=1231
2007-08-13 20:36:29 +00:00
Lucas Rocha ae3e8d1496 fix critical warning when using checkbox and radiobox in list dialog
2007-08-13  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c: fix critical warning when using checkbox and radiobox in
	list dialog (Fixes bug #453713).

svn path=/trunk/; revision=1230
2007-08-13 20:16:37 +00:00
Lucas Rocha b2459f3b6e fix broken handling of input from pipes in list dialog (Fixes bug
2007-05-27  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c: fix broken handling of input from pipes in list 
	dialog (Fixes bug #343684). 

svn path=/trunk/; revision=1221
2007-05-27 21:20:39 +00:00
Lucas Rocha a705262d81 fix index handling for --print-column (Fixes bug #420396).
2007-05-15  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c (zenity_tree_dialog_toggle_get_selected): fix index
	handling for --print-column (Fixes bug #420396).

svn path=/trunk/; revision=1211
2007-05-14 22:07:13 +00:00
Lucas Rocha 216ee62fe1 fix small build warnings on 64-bit architectures (Fixes bug #344125). fix
2006-07-26  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c (zenity_tree_fill_entries_from_stdin, zenity_tree): fix
	small build warnings on 64-bit architectures (Fixes bug #344125).
	* src/zenity.h: fix small build warning.
2006-07-26 23:17:04 +00:00
Lucas Rocha e97b6eeaeb don't ignore return value from g_renew() (Fixes bug #338038). Patch from
2006-04-16  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c (zenity_tree_extract_column_indexes):
	don't ignore return value from g_renew() (Fixes
	bug #338038). Patch from Behdad Esfahbod
	<gnome@behdad.org>.
2006-04-17 04:11:15 +00:00
Lucas Rocha 5547de9384 make it possible to add new lines and markup in the dialog text.
2005-11-15  Lucas Rocha  <lucasr@cvs.gnome.org>

        * src/calendar.c, src/progress.c, src/tree.c: make
        it possible to add new lines and markup in the dialog
        text.
2005-11-15 04:14:35 +00:00
Lucas Rocha 21f7bc6a54 general code cleanups. Contribution from Benoît Dejean.
2005-07-08  Lucas Rocha  <lucasr@cvs.gnome.org>

	* src/about.c, src/calendar.c, src/fileselection.c,
	src/option.c, src/progress.c, src/text.c, src/tree.c,
	src/util.c: general code cleanups. Contribution from
	Benoît Dejean.
2005-07-08 23:21:34 +00:00
Lucas Almeida Rocha 4c328078b6 Include cleanups (config.h) 2005-07-06 20:13:11 +00:00
Lucas Almeida Rocha 8ba040f33b New --hide-column option. 2005-07-01 21:28:36 +00:00
Lucas Almeida Rocha da0a2585b3 Data structure improvements on List dialogs. 2005-06-30 23:43:23 +00:00
Lucas Almeida Rocha c9be8d0579 New --print-column syntax. Now it's possible to pass a comma-separated list of column indexes. 2005-06-28 11:11:50 +00:00