summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2019-02-24 17:43:19 +0000
committerMichael Catanzaro <mcatanzaro@posteo.net>2019-02-24 22:30:34 +0000
commit4e6756ec4ba3fb583116d294a099ec9105fca6ba (patch)
treee5c115c1ed060d0830b328456c1b6b1b97c84d61 /src
parenta42e8c5cfd65a6d4426a67fe0fee3f954fd3589e (diff)
downloadepiphany-4e6756ec4ba3fb583116d294a099ec9105fca6ba.tar.gz
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 (cherry picked from commit 38c3f4e24db85a7cc40b5e0422160597cf17980e)
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c1
-rw-r--r--src/resources/gtk/notebook-context-menu.ui6
2 files changed, 6 insertions, 1 deletions
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>