summaryrefslogtreecommitdiff
path: root/src/tree.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'list-stdin-newrow' into 'master'Logan Rathbone2023-04-261-0/+3
|\ | | | | | | | | tree: fix handling of multi-row stdin input (#54) See merge request GNOME/zenity!27
| * tree: fix handling of multi-row stdin input (#54)Adam Williamson2023-04-201-0/+3
| | | | | | | | | | | | | | | | | | | | This was broken by the GtkColumnView port (7a80b67). As part of the changes that just stopped any attempt to actually start a new row here, so we just kept stuffing more and more items into the only row item we ever create. So you just couldn't do multi- row input via stdin. Signed-off-by: Adam Williamson <awilliam@redhat.com>
* | Set dialog 'heading', not 'title'Adam Williamson2023-04-201-1/+1
|/ | | | | | | | | | In the GTK 4 port, we made all Zenity dialogs use the libadwaita `AdwMessageDialog` class. This dialog does not have a title bar and does not show its title. The equivalent to title for this class is 'heading' - everywhere we were previously setting the title, we should set the 'heading' instead. Signed-off-by: Adam Williamson <awilliam@redhat.com>
* tree: Re-add support for hiding columnsLogan Rathbone2023-02-021-0/+8
|
* tree: Add searchabilityLogan Rathbone2023-02-021-3/+11
|
* Mark deprecation strings for translation.Logan Rathbone2023-02-011-2/+2
|
* tree: Initial port to GtkColumnViewLogan Rathbone2023-02-011-524/+192
| | | | | | There are likely bugs. Search functionality still needs to be implemented.
* tree: Remove conflict marker left in file during merge.Logan Rathbone2023-01-261-4/+0
|
* Merge branch 'gtk4-port'Logan Rathbone2023-01-261-255/+300
|\
| * Initial port to libadwaitaLogan Rathbone2023-01-231-23/+13
| |
| * Use g_auto* where possible.Logan Rathbone2021-12-291-17/+6
| |
| * tree: clicking row should check radio/checkboxesLogan Rathbone2021-11-151-24/+27
| | | | | | | | | | | | Forward-port from gtk3 (master) branch. Addresses #37 Merge and fix conflicts.
| * Mass cleanup and finish meson migration.Logan Rathbone2021-02-141-72/+56
| | | | | | | | Autotools purged.
| * Make remaining C files build against gtk4Logan Rathbone2021-02-111-191/+273
| | | | | | | | | | Next step: the app doesn't run because the .UI file contains incompatibilities with gtk4 after conversion.
* | Merge branch 'check-radio-box-fixes' into 'master'Logan Rathbone2021-11-151-21/+28
|\ \ | | | | | | | | | | | | tree: Clicking row should check radio/checkboxes See merge request GNOME/zenity!16
| * | tree: clicking row should check radio/checkboxescheck-radio-box-fixesLogan Rathbone2021-08-161-21/+28
| |/ | | | | | | Addresses #37
* | Fix search column selection with --imagelistJanne Pulkkinen2021-07-241-0/+8
|/ | | | | | | 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.
* Fix styleArx Cruz2017-04-071-661/+731
| | | | | Fixing style in all zenity code, removing useless spaces, empty lines, all code in 80 columns, etc.
* Fixing GLib-CRITICAL messagesArx Cruz2015-10-021-1/+1
|
* Fixing deprecated declarationsArx Cruz2015-05-291-1/+1
|
* Merge branch 'jjardon/no_deprecated'Arx Cruz2015-04-211-8/+3
|\ | | | | | | | | Conflicts: src/msg.c
| * src/tree.c: avoid a compilation warningjjardon/no_deprecatedJavier Jardón2015-03-221-2/+3
| |
| * src/tree.c: Do not use deprecated gtk_tree_view_set_rules_hint()Javier Jardón2015-03-221-2/+0
| |
| * Do not use an icon for Cancel/OK buttonsJavier Jardón2015-03-221-4/+0
| | | | | | | | | | GTK+ documentation recommends to not use an icons, but use "_OK"/"_Cancel" labels instead
* | ADD gchar **extra_label TO struct ZenityDataGama Anderson2015-04-211-1/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug #685051 Adding --mid-search option to --listArx Cruz2014-10-211-0/+14
| | | | | | | | | | | | | | 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'
* added attach option for transient windowWeitian Leung2013-08-311-1/+1
|
* Bug #653468. Fixed by Kurt Miller <kurt@intricatesoftware.com>.Arx Cruz2013-06-041-5/+4
| | | | Fix the broken auto-close option in progress and list dialogs.
* Bug 698683 - Double clicking an item or hitting enter after selecting an itemArx Cruz2013-05-231-6/+0
| | | | returns it twice
* But #674881 - Timeout option overriding normal exit codeArx Cruz2013-03-051-15/+22
|
* util: Add an option to request dialogs being modalFlorian Müllner2012-09-251-0/+3
| | | | | | | | | 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
* Added support to --imagelist on tree. Thanks to Joshua Nathaniel Pritikin ↵Arx Cruz2012-07-191-6/+47
| | | | <jpritikin@pobox.com> now the first column can have an image.
* mask the result of g_io_channel_get_flags for the wanted flagJulian Taylor2012-05-081-3/+3
|
* Bug #673529 Fix segmentation fault in --list optionArx Cruz2012-04-191-3/+3
|
* Bug #668935 - the channel was being freed twice.Arx Cruz2012-01-301-1/+1
|
* Fix for bug #611297 Now Zenity have --ok-label and --cancel-label in all ↵Arx Cruz2011-07-261-0/+15
| | | | dialogs. This patch doesn't break old zenity scripts.
* Bug #592195. This fix made the --list mode return as soon as receive an ok ↵Arx Cruz2011-07-261-3/+8
| | | | | | or cancel response avoiding crash.
* Fix for bug #540489 and #501001 both related to 100% use of cpu.Arx Cruz2011-07-081-0/+3
|
* Now if you use --timeout option, the return code will be properly handledArx Cruz2011-06-171-1/+1
| | | | | The default behavior will be done (ie. user click on ok button) The return code will be 5
* Bug 651948 - zenity list does not return default value when timeout is overArx Cruz2011-06-161-1/+1
|
* Fix for bug 540560.Arx Cruz2011-01-021-1/+1
| | | | Patch by Victor Ananjevsky <ananasik at gmail dot com>
* Use g_timeout_add_seconds instead g_timeout_addPhilippe Gauthier2010-05-271-1/+1
| | | | | | 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
* [list] allow escaped chars as separatorLucas Rocha2009-09-161-1/+1
|
* Bug 552971 - Add a hide-header option to list dialogBryce Harrington2009-08-101-0/+3
|
* Bug 578393 – convert from libglade to GtkBuilderFelix Riemann2009-07-201-17/+17
|
* GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452). Patch fromLucas Rocha2009-01-091-3/+3
| | | | | | | | | | 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
* use g_value_dup_string when applicable (Fixes bug #527258). Patch fromLucas Rocha2008-04-101-4/+4
| | | | | | | | | | 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
* added timeout option to all dialogs (Fixes bug #160654). Based on patchLucas Rocha2007-08-131-0/+5
| | | | | | | | | 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
* fix critical warning when using checkbox and radiobox in list dialogLucas Rocha2007-08-131-1/+1
| | | | | | | | | 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
* fix broken handling of input from pipes in list dialog (Fixes bugLucas Rocha2007-05-271-17/+17
| | | | | | | | | 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