Commit 5486942b authored by José Aliste's avatar José Aliste

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
parent 90a2586b
......@@ -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));
......
......@@ -69,6 +69,24 @@
<attribute name="action">win.rotate-right</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">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>
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment