[epiphany/wip/exalm/menu: 39/43] window: Merge tab.close and tab.close-tab
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/menu: 39/43] window: Merge tab.close and tab.close-tab
- Date: Tue, 22 Sep 2020 21:09:56 +0000 (UTC)
commit 5dae76a5a750557987392df53e4f21e01f6e1840
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]