[gnome-text-editor] shortcuts: fix annoying GTK warning



commit 05e6571b3c69830f3b0f9b904f79d292dcb362f0
Author: Christian Hergert <christian hergert me>
Date:   Sat Feb 12 03:58:06 2022 -0800

    shortcuts: fix annoying GTK warning
    
    Since we're taking over a previous action this gets a bit annoying as it
    warns on us. We can just use a different name instead and get the same
    result.

 src/editor-window.c  | 4 ++--
 src/editor-window.ui | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/editor-window.c b/src/editor-window.c
index 026bcdb..85cb6ac 100644
--- a/src/editor-window.c
+++ b/src/editor-window.c
@@ -880,7 +880,7 @@ editor_window_class_init (EditorWindowClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, on_tab_view_setup_menu_cb);
   gtk_widget_class_bind_template_callback (widget_class, on_tab_view_create_window_cb);
 
-  gtk_widget_class_install_action (widget_class, "win.show-help-overlay", NULL, on_show_help_overlay_cb);
+  gtk_widget_class_install_action (widget_class, "win.alternate-help-overlay", NULL, 
on_show_help_overlay_cb);
   gtk_widget_class_install_action (widget_class, "win.undo-close-page", NULL, on_undo_close_page_cb);
 
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_w, GDK_CONTROL_MASK, 
"win.close-page-or-window", NULL);
@@ -906,7 +906,7 @@ editor_window_class_init (EditorWindowClass *klass)
   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);
-  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_question, GDK_CONTROL_MASK, 
"win.show-help-overlay", NULL);
+  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_question, GDK_CONTROL_MASK, 
"win.alternate-help-overlay", NULL);
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_t, GDK_CONTROL_MASK|GDK_SHIFT_MASK, 
"win.undo-close-page", NULL);
 
   gtk_widget_class_add_binding_action (widget_class, GDK_KEY_plus, GDK_CONTROL_MASK, "page.zoom-in", NULL);
diff --git a/src/editor-window.ui b/src/editor-window.ui
index 9b41806..abbc194 100644
--- a/src/editor-window.ui
+++ b/src/editor-window.ui
@@ -249,7 +249,7 @@ Or, press Ctrl+W to close the window.</property>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
-        <attribute name="action">win.show-help-overlay</attribute>
+        <attribute name="action">win.alternate-help-overlay</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">_Help</attribute>


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