[gnome-text-editor] window: use ctrl+, to show preferences



commit 673c8fff31a47e3b821768819931f6f45154aa6a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Nov 29 21:56:06 2021 -0800

    window: use ctrl+, to show preferences
    
    We use this in Builder, and it's also in mockups in #231

 src/editor-window.c | 1 +
 src/menus.ui        | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index 7e091fe..72cf55f 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -750,6 +750,7 @@ editor_window_class_init (EditorWindowClass *klass)
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_f, GDK_CONTROL_MASK, "page.begin-search", NULL);
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_h, GDK_CONTROL_MASK, "page.begin-replace", 
NULL);
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_F10, 0, "win.show-primary-menu", NULL);
+  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_comma, GDK_CONTROL_MASK, 
"win.show-preferences", NULL);
 
   _editor_window_class_actions_init (klass);
 
diff --git a/src/menus.ui b/src/menus.ui
index c22d8e7..5642545 100644
--- a/src/menus.ui
+++ b/src/menus.ui
@@ -54,6 +54,7 @@
       <item>
         <attribute name="label" translatable="yes">_Preferences</attribute>
         <attribute name="action">win.show-preferences</attribute>
+        <attribute name="accel">&lt;control&gt;comma</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>


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