[epiphany] Add separators to notebook context menu



commit 38c3f4e24db85a7cc40b5e0422160597cf17980e
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Feb 24 18:43:19 2019 +0100

    Add separators to notebook context menu
    
    Group context menu for easier navigation and add a custom action to close a single tab. This will remove 
shortcut showing up in menu and reduce horizontal space.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/652

 src/ephy-window.c                          | 1 +
 src/resources/gtk/notebook-context-menu.ui | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 033b88bdc..9db0041a0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -844,6 +844,7 @@ 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 },
diff --git a/src/resources/gtk/notebook-context-menu.ui b/src/resources/gtk/notebook-context-menu.ui
index 7990fa491..f01310cd5 100644
--- a/src/resources/gtk/notebook-context-menu.ui
+++ b/src/resources/gtk/notebook-context-menu.ui
@@ -15,10 +15,14 @@
         <attribute name="label" translatable="yes">_Duplicate</attribute>
         <attribute name="action">tab.duplicate</attribute>
       </item>
+    </section>
+    <section>
       <item>
         <attribute name="label" translatable="yes">Reo_pen Closed Tab</attribute>
         <attribute name="action">tab.reopen</attribute>
       </item>
+    </section>
+    <section>
       <item>
         <attribute name="label" translatable="yes">Close Tabs to the _Left</attribute>
         <attribute name="action">tab.close-left</attribute>
@@ -33,7 +37,7 @@
       </item>
       <item>
         <attribute name="label" translatable="yes">_Close</attribute>
-        <attribute name="action">tab.close</attribute>
+        <attribute name="action">tab.close-tab</attribute>
       </item>
     </section>
   </menu>


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