[epiphany/wip/exalm/menu: 3/7] window: Merge tab.close and tab.close-tab




commit d52a40f12b9ef5be9f00b1723ea0cad32b36eb30
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 7 22:37:57 2020 +0500

    window: Merge tab.close and tab.close-tab
    
    Show the shortcut in the menu.

 src/ephy-window.c                          | 3 +--
 src/resources/gtk/notebook-context-menu.ui | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d6adfb24e..7d934e9ea 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -880,7 +880,6 @@ static const GActionEntry tab_entries [] = {
   { "duplicate", window_cmd_tabs_duplicate },
   { "detach", window_cmd_tabs_detach },
   { "close", window_cmd_tabs_close },
-  { "close-tab", window_cmd_tabs_close },
   { "close-left", window_cmd_tabs_close_left },
   { "close-right", window_cmd_tabs_close_right },
   { "move-left", window_cmd_tabs_move_left },
@@ -2728,7 +2727,7 @@ show_notebook_popup_menu (GtkNotebook    *notebook,
     g_simple_action_set_enabled (G_SIMPLE_ACTION (action), pinned);
 
     action = g_action_map_lookup_action (G_ACTION_MAP (action_group),
-                                         "close-tab");
+                                         "close");
     g_simple_action_set_enabled (G_SIMPLE_ACTION (action), !pinned);
 
     gtk_menu_popup_at_pointer (GTK_MENU (menu), (GdkEvent *)event);
diff --git a/src/resources/gtk/notebook-context-menu.ui b/src/resources/gtk/notebook-context-menu.ui
index 6c179ea80..e4730d4f1 100644
--- a/src/resources/gtk/notebook-context-menu.ui
+++ b/src/resources/gtk/notebook-context-menu.ui
@@ -49,7 +49,7 @@
       </item>
       <item>
         <attribute name="label" translatable="yes">_Close</attribute>
-        <attribute name="action">tab.close-tab</attribute>
+        <attribute name="action">tab.close</attribute>
       </item>
     </section>
   </menu>


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