[ghex/ghex-42] main: Quick hotfix to workaround gtk #4880
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex/ghex-42] main: Quick hotfix to workaround gtk #4880
- Date: Thu, 28 Apr 2022 21:48:59 +0000 (UTC)
commit e94a8ff03c4e17a721c1113cf9433d16f547541e
Author: Logan Rathbone <poprocks gmail com>
Date: Thu Apr 28 17:25:30 2022 -0400
main: Quick hotfix to workaround gtk #4880
- For Save As dialog, stop focus from being stolen from the filename
entry and over to the search box. Hopefully this bug will be fixed in
GTK soon and this workaround can be removed.
- See: https://gitlab.gnome.org/GNOME/gtk/-/issues/4880
(cherry picked from commit d638af9ba5b7357841dca0961e6e6a06691ffa95)
src/main.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index 29cc354..7559635 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,6 +115,10 @@ activate (GtkApplication *app,
{
(void)user_data; /* unused */
+ /* WORKAROUND https://gitlab.gnome.org/GNOME/gtk/-/issues/4880 */
+
+ g_object_set (gtk_settings_get_default (), "gtk-dialogs-use-header", TRUE, NULL);
+
do_app_window (app);
gtk_window_set_application (window, app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]