[eog: 1/6] Move View options to submenu
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 1/6] Move View options to submenu
- Date: Tue, 13 Nov 2018 22:29:26 +0000 (UTC)
commit 17f68bb64f09fe6645a73726ca70c2b6c1e8bf09
Author: p3732 <p3732 users noreply github com>
Date: Fri Oct 26 15:28:39 2018 +0200
Move View options to submenu
In order to slim down the menu move Side Pane, Image Gallery and Status Bar into a submenu.
data/eog-gear-menu.ui | 27 +++++++++++++++------------
src/eog-window.c | 8 ++++++++
2 files changed, 23 insertions(+), 12 deletions(-)
---
diff --git a/data/eog-gear-menu.ui b/data/eog-gear-menu.ui
index 4353828d..f56ca869 100644
--- a/data/eog-gear-menu.ui
+++ b/data/eog-gear-menu.ui
@@ -37,18 +37,21 @@
<attribute name="label" translatable="yes">Sli_deshow</attribute>
<attribute name="action">win.view-slideshow</attribute>
</item>
- <item>
- <attribute name="label" translatable="yes">S_ide Pane</attribute>
- <attribute name="action">win.view-sidebar</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">Image _Gallery</attribute>
- <attribute name="action">win.view-gallery</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">S_tatus Bar</attribute>
- <attribute name="action">win.view-statusbar</attribute>
- </item>
+ <submenu>
+ <attribute name="label" translatable="yes">View</attribute>
+ <item>
+ <attribute name="label" translatable="yes">S_ide Pane</attribute>
+ <attribute name="action">win.view-sidebar</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Image _Gallery</attribute>
+ <attribute name="action">win.view-gallery</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">S_tatus Bar</attribute>
+ <attribute name="action">win.view-statusbar</attribute>
+ </item>
+ </submenu>
</section>
<section>
<item>
diff --git a/src/eog-window.c b/src/eog-window.c
index 5be451f9..268a5eff 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -138,6 +138,7 @@ struct _EogWindowPrivate {
GtkWidget *properties_dlg;
GMenu *open_with_menu;
+ GMenu *view_menu;
GPtrArray *appinfo;
GtkBuilder *gear_menu_builder;
@@ -4340,6 +4341,13 @@ 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]