[eog: 4/6] Add mnemonic for View submenu
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 4/6] Add mnemonic for View submenu
- Date: Tue, 13 Nov 2018 22:29:41 +0000 (UTC)
commit 2279e269b5ff7e72d61fca7160422a733b798377
Author: p3732 <p3732 users noreply github com>
Date: Tue Nov 13 02:43:46 2018 +0100
Add mnemonic for View submenu
Add V as mnemonic for the View submenu and remove some redundant code as suggested in the review of !14
data/eog-gear-menu.ui | 3 ++-
src/eog-window.c | 8 --------
2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/data/eog-gear-menu.ui b/data/eog-gear-menu.ui
index 39c2ec6e..1c17aeb0 100644
--- a/data/eog-gear-menu.ui
+++ b/data/eog-gear-menu.ui
@@ -45,7 +45,7 @@
<attribute name="action">win.view-slideshow</attribute>
</item>
<submenu>
- <attribute name="label" translatable="yes">View</attribute>
+ <attribute name="label" translatable="yes">_View</attribute>
<item>
<attribute name="label" translatable="yes">S_ide Pane</attribute>
<attribute name="action">win.view-sidebar</attribute>
@@ -81,3 +81,4 @@
</menu>
</interface>
+
diff --git a/src/eog-window.c b/src/eog-window.c
index 74ef61de..d36bd2f9 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -138,7 +138,6 @@ struct _EogWindowPrivate {
GtkWidget *properties_dlg;
GMenu *open_with_menu;
- GMenu *view_menu;
GPtrArray *appinfo;
GtkBuilder *gear_menu_builder;
@@ -4337,13 +4336,6 @@ eog_window_construct_ui (EogWindow *window)
g_menu_append_section (G_MENU (builder_object),
NULL,
G_MENU_MODEL (priv->open_with_menu));
-
- priv->view_menu = g_menu_new ();
- //priv->appinfo = g_ptr_array_new_with_free_func (g_object_unref);
- builder_object = gtk_builder_get_object (builder, "view-menu");
- g_menu_append_section (G_MENU (builder_object),
- NULL,
- G_MENU_MODEL (priv->view_menu));
priv->gear_menu_builder = builder;
builder = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]