[evince] Remove the Next-Page and Previous-Page buttons from the toolbar.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Remove the Next-Page and Previous-Page buttons from the toolbar.
- Date: Thu, 24 Jul 2014 15:15:26 +0000 (UTC)
commit 5486942bbeb307eb01575b4f7a024f1999f74d30
Author: José Aliste <jaliste src gnome org>
Date: Thu Jul 24 10:56:17 2014 -0400
Remove the Next-Page and Previous-Page buttons from the toolbar.
Move the actions to the View menu.
Also move the Last Page and First Page to the View menu.
https://bugzilla.gnome.org/show_bug.cgi?id=732289
shell/ev-toolbar.c | 19 -------------------
shell/evince-menus.ui | 28 ++++++++++++++++++----------
2 files changed, 18 insertions(+), 29 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index 6bb98e9..aabfb20 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -211,25 +211,6 @@ ev_toolbar_constructed (GObject *object)
builder = gtk_builder_new_from_resource ("/org/gnome/evince/shell/ui/menus.ui");
- /* Navigation */
- hbox = ev_toolbar_create_button_group (ev_toolbar);
-
- button = ev_toolbar_create_button (ev_toolbar, "win.go-previous-page",
- "go-up-symbolic", _("Previous Page"));
- gtk_container_add (GTK_CONTAINER (hbox), button);
- gtk_widget_show (button);
-
- button = ev_toolbar_create_button (ev_toolbar, "win.go-next-page",
- "go-down-symbolic", _("Next Page"));
- gtk_container_add (GTK_CONTAINER (hbox), button);
- gtk_widget_show (button);
- if (rtl)
- gtk_widget_set_margin_left (hbox, 6);
- else
- gtk_widget_set_margin_right (hbox, 6);
- gtk_header_bar_pack_start (GTK_HEADER_BAR (ev_toolbar), hbox);
- gtk_widget_show (hbox);
-
/* Page selector */
/* Use EvPageActionWidget for now, since the page selector action is also used by the previewer */
tool_item = GTK_WIDGET (g_object_new (EV_TYPE_PAGE_ACTION_WIDGET, NULL));
diff --git a/shell/evince-menus.ui b/shell/evince-menus.ui
index a174b1b..94831c9 100644
--- a/shell/evince-menus.ui
+++ b/shell/evince-menus.ui
@@ -71,6 +71,24 @@
</section>
<section>
<item>
+ <attribute name="label" translatable="yes">First Page</attribute>
+ <attribute name="action">win.go-first-page</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Previous Page</attribute>
+ <attribute name="action">win.go-previous-page</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Next Page</attribute>
+ <attribute name="action">win.go-next-page</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Last Page</attribute>
+ <attribute name="action">win.go-last-page</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
<attribute name="label" translatable="yes">Zoom _In</attribute>
<attribute name="action">win.zoom-in</attribute>
</item>
@@ -151,16 +169,6 @@
<attribute name="action">win.save-settings</attribute>
</item>
</section>
- <section>
- <item>
- <attribute name="label" translatable="yes">_First Page</attribute>
- <attribute name="action">win.go-first-page</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Last Page</attribute>
- <attribute name="action">win.go-last-page</attribute>
- </item>
- </section>
<section id="bookmarks">
<item>
<attribute name="label" translatable="yes">_Add Bookmark</attribute>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]