[libadwaita/wip/cdavis/tabs-capture-phase: 1/2] tab-view: Use global scope for shortcuts




commit 0c11d6897ae517430d21a476d3723f55930e7d5e
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sat Jul 16 03:50:24 2022 -0400

    tab-view: Use global scope for shortcuts
    
    Per discussion in #gtk - we want these shortcuts to be handled by the
    window. In practice, `MANAGED` usually does the same as `GLOBAL`: it
    would normally use a GtkWindow since that's the common
    GtkShortcutManager ancestor. `MANAGED` is mainly useful for menus,
    so it's more appropriate for us to use `GLOBAL`.

 src/adw-tab-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 99dc3a7b..8c412b51 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -1713,7 +1713,7 @@ adw_tab_view_init (AdwTabView *self)
 
   controller = gtk_shortcut_controller_new ();
   gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller),
-                                     GTK_SHORTCUT_SCOPE_MANAGED);
+                                     GTK_SHORTCUT_SCOPE_GLOBAL);
 
   init_shortcuts (self, controller);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]