[epiphany/gnome-3-32] Add separators to notebook context menu
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-32] Add separators to notebook context menu
- Date: Sun, 24 Feb 2019 22:30:42 +0000 (UTC)
commit 4e6756ec4ba3fb583116d294a099ec9105fca6ba
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Sun Feb 24 17:43:19 2019 +0000
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)
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]