summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* util: Remove superfluous GtkWindow cast checkLogan Rathbone2023-05-081-1/+1
|
* util: Ignore superfluous quit requestsLogan Rathbone2023-05-081-0/+10
| | | | This should prevent potential race conditions with STDIN handling.
* progress: Cleanup unnecessary static objects and remove spurious builder unrefLogan Rathbone2023-05-081-16/+11
|
* util: remove fatal assert on exit if window invalid GtkWindowLogan Rathbone2023-05-081-6/+2
| | | | See https://gitlab.gnome.org/GNOME/zenity/-/merge_requests/25#note_1738825
* main: Add G_APPLICATION_FLAGS_NON_UNIQUE to GApplication flagsLogan Rathbone2023-04-291-1/+1
| | | | Fixes: #58
* option: Add non-fatal deprecation warning for --hintLogan Rathbone2023-04-281-0/+19
|
* option: Add non-fatal deprecation warning for --icon-nameLogan Rathbone2023-04-281-66/+36
| | | | | Also, unify the icon deprecation stuff so that --window-icon and --icon-name both work in the same way and produce similar warnings.
* option: Add non-fatal deprecation warning for --attachLogan Rathbone2023-04-281-14/+34
|
* option: Correct --window-icon deprecation message.Logan Rathbone2023-04-281-1/+1
| | | | | We're not "ignoring" it as was previously indicated; we're treating it as if --icon were used.
* option: Add non-fatal deprecation warning for --confirm-overwriteLogan Rathbone2023-04-261-0/+20
| | | | | | | | | This makes this option consistent with --mid-search and --window-icon in that the option will do nothing and print a warning that the option is deprecated and will be removed in a future version, but will not cause the script to fatally terminate. Fixes #55
* Merge branch 'missing-responses' into 'master'Logan Rathbone2023-04-261-5/+12
|\ | | | | | | | | progress: don't update responses that aren't there See merge request GNOME/zenity!25
| * progress: don't update responses that aren't thereAdam Williamson2023-04-201-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zenity_progress_handle_stdin always tries to update these responses when progress seems to be done, but sometimes the responses aren't present at all. The cancel response is not present if `no_cancel` is true (that's when the CLI param `--no-cancel` is used), and the OK response is not present if `auto_close` is true (that's when `--auto-close` is used). We need to only update the responses when they're present. This solves a problem where zenity will print some errors then crash when `--no-cancel` or `--auto-close` (or both) are used, notably by Steam: zenity[3319]: adw_message_dialog_set_response_enabled: assertion 'adw_message_dialog_has_response (self, response)' failed zenity[3319]: adw_message_dialog_set_response_enabled: assertion 'adw_message_dialog_has_response (self, response)' failed zenity[3319]: adw_message_dialog_set_response_enabled: assertion 'adw_message_dialog_has_response (self, response)' failed steam.desktop[3319]: ** steam.desktop[3319]: Zenity:ERROR:../src/util.c:465:zenity_util_gapp_quit: assertion failed: (GTK_IS_WINDOW (window)) steam.desktop[3319]: Bail out! Zenity:ERROR:../src/util.c:465:zenity_util_gapp_quit: assertion failed: (GTK_IS_WINDOW (window)) I don't know why this causes the parent to stop being a window, but...apparently it does. See: https://bugzilla.redhat.com/show_bug.cgi?id=2177287 Signed-off-by: Adam Williamson <awilliam@redhat.com>
* | Merge branch 'set-parent-existing' into 'master'Logan Rathbone2023-04-261-1/+2
|\ \ | | | | | | | | | | | | tree-column-view: don't steal children See merge request GNOME/zenity!28
| * | tree-column-view: don't steal childrenAdam Williamson2023-04-201-1/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mousing over a dialog that uses this kind of view (e.g. one created with the test command in https://gitlab.gnome.org/GNOME/zenity/-/issues/54#note_1726876 ), I see a lot of these errors on the console: gtk_list_item_set_child: assertion 'child == NULL || gtk_widget_get_parent (child) == NULL' failed I think we can hit this callback more than once, and doing so means we try to set the list item's child again; Gtk doesn't like that, because we're effectively trying to set the parent of an item that already has one (it doesn't check if we're just trying to set the *same* parent, it just complains any time you try to set something as the child that already has a parent). Signed-off-by: Adam Williamson <awilliam@redhat.com>
* | webkit: Fix leak by removing unnecessary ref sinkLogan Rathbone2023-04-261-2/+2
| | | | | | | | See https://gitlab.gnome.org/GNOME/zenity/-/merge_requests/29#note_1732335
* | 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>
* | Port to webkitgtk 6.0Adam Williamson2023-04-261-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | webkitgtk 5.0 is gone from Fedora 38 and Fedora Rawhide, so our CI 'build_fedora' task is always failing. This ports the code to webkitgtk 6.0 and updates the build and CI configs. I based the changes on Epiphany code. I tested it with: zenity --text-info --html --url=https://www.happyassassin.net and it seems to work OK. Signed-off-by: Adam Williamson <awilliam@redhat.com>
* | Set dialog 'heading', not 'title'Adam Williamson2023-04-2010-20/+20
|/ | | | | | | | | | 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-cv: Single clicking on list rows should activate check/radio buttonsLogan Rathbone2023-02-041-0/+38
|
* Add some missing GPL headers.Logan Rathbone2023-02-042-0/+46
|
* tree: Fix radiolist infinite loopLogan Rathbone2023-02-021-15/+17
| | | | | Only ever define the checkbutton group once. Redefining the checkbutton group as the O.G. one can lead to U.B.
* tree: Re-add support for hiding columnsLogan Rathbone2023-02-023-0/+18
|
* tree: Add searchabilityLogan Rathbone2023-02-024-18/+190
|
* Mark deprecation strings for translation.Logan Rathbone2023-02-012-4/+4
|
* tree: Initial port to GtkColumnViewLogan Rathbone2023-02-0111-551/+767
| | | | | | 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-2623-4492/+3686
|\
| * main: suppress "this is discouraged" message from libadwaitaLogan Rathbone2023-01-251-0/+7
| | | | | | | | | | Bit of a hack, but I can just see us getting bug report after bug report about this message if it's left in.
| * forms: Fix parameter order in calendar segmentLogan Rathbone2023-01-241-4/+3
| |
| * text: Fix dialog response signal handlerLogan Rathbone2023-01-241-1/+5
| |
| * color/filesel: ignore deprecations and fix signal handlersLogan Rathbone2023-01-242-14/+13
| | | | | | | | These dialogs still use the old GtkDialog-based API.
| * text: Make resizableLogan Rathbone2023-01-241-0/+1
| |
| * text: Re-add webkit support for gtk4Logan Rathbone2023-01-242-12/+11
| |
| * Initial port to libadwaitaLogan Rathbone2023-01-2321-973/+642
| |
| * scale: set a page increment so mouse wheel can be used on widgetHg2022-09-211-1/+2
| | | | | | | | | | | | | | | | the page increment is set to the same as step increment, for simplicity. Closes #30 (cherry picked from commit 2d7d505548c10c0e59cd46cb462a8df55f138d67)
| * Icon handling improvements.Logan Rathbone2022-01-126-43/+132
| | | | | | | | | | | | Update manpage to reflect proper usage of --icon. Add handling of zenity3 --window-icon option, with deprecation warning.
| * help/docs: update; notification: bugfixes.Logan Rathbone2022-01-112-5/+13
| |
| * Drop gdialog wrapper script.Logan Rathbone2022-01-102-363/+0
| | | | | | | | | | The usefulness of this script probably vanished about 20 years ago, so there is no need to keep it around with a new major release of Zenity.
| * notification: Initial port to GNotificationLogan Rathbone2022-01-108-249/+65
| | | | | | | | | | | | | | | | Port from libnotify, which is deprecated. Some features are yet missing, but this is a start. This drops libnotify as a dependency; meson files updated accordingly.
| * Use g_auto* where possible.Logan Rathbone2021-12-2915-220/+65
| |
| * tree: clicking row should check radio/checkboxesLogan Rathbone2021-11-151-24/+27
| | | | | | | | | | | | Forward-port from gtk3 (master) branch. Addresses #37 Merge and fix conflicts.
| * Make icon notification-only.Logan Rathbone2021-02-155-120/+53
| | | | | | | | | | | | s/--window-icon/--icon, now only for the notification component. Update manpage accordingly.
| * Mass cleanup and finish meson migration.Logan Rathbone2021-02-1414-336/+139
| | | | | | | | Autotools purged.
| * Start migrating to meson.Logan Rathbone2021-02-134-6/+53
| |
| * .ui: use resource; cleanup before commencing meson conversion.Logan Rathbone2021-02-1310-71/+96
| |
| * calendar: make it not crash and use GDateTime.Logan Rathbone2021-02-125-20/+47
| |
| * password: use Builder for consistency with rest of app.Logan Rathbone2021-02-123-49/+134
| |
| * Tweak layout of msg dialogs. Get font-setter to work with text-info.Logan Rathbone2021-02-127-680/+849
| |
| * Make zenity run with gtk4 (very unstable).Logan Rathbone2021-02-114-269/+96
| |