[ghex] main: Quick hotfix to workaround gtk #4880



commit d638af9ba5b7357841dca0961e6e6a06691ffa95
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

 src/main.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/main.c b/src/main.c
index e57bee2..14750b9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -113,6 +113,10 @@ static void
 activate (GtkApplication *app,
        gpointer user_data)
 {
+       /* 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]