[evince/wip/gpoo/print-preview-ui: 3/5] previewer: Remove navigation buttons
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/print-preview-ui: 3/5] previewer: Remove navigation buttons
- Date: Thu, 8 Nov 2018 17:27:53 +0000 (UTC)
commit b0021b121bcfba4548c3ed992103dbab4cc47326
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Thu Nov 8 11:23:28 2018 -0300
previewer: Remove navigation buttons
We removed the buttons from the main application, so we can
keep the consistency, while simplifying the UI.
We rely on having the document preview in continuous mode to
reduce a potential confusion for users who only uses the arrow
keys to navigate the document.
previewer/ev-previewer-toolbar.c | 20 --------------------
previewer/previewer.ui | 24 ------------------------
2 files changed, 44 deletions(-)
---
diff --git a/previewer/ev-previewer-toolbar.c b/previewer/ev-previewer-toolbar.c
index 2d0fd1ad..dd650197 100644
--- a/previewer/ev-previewer-toolbar.c
+++ b/previewer/ev-previewer-toolbar.c
@@ -46,8 +46,6 @@ struct _EvPreviewerToolbarPrivate {
GtkWidget *page_selector;
GtkWidget *print_button;
- GtkWidget *previous_button;
- GtkWidget *next_button;
GtkWidget *zoom_in_button;
GtkWidget *zoom_out_button;
GtkWidget *zoom_default_button;
@@ -85,24 +83,6 @@ ev_previewer_toolbar_constructed (GObject *object)
builder = gtk_builder_new_from_resource ("/org/gnome/evince/previewer/ui/previewer.ui");
- hbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
- gtk_widget_set_halign (hbox, GTK_ALIGN_CENTER);
- gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_EXPAND);
- gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
-
- button = GTK_WIDGET (gtk_builder_get_object (builder, "go-previous-page"));
- ev_previewer_toolbar->priv->previous_button = button;
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
- gtk_widget_show (button);
-
- button = GTK_WIDGET (gtk_builder_get_object (builder, "go-next-page"));
- ev_previewer_toolbar->priv->next_button = button;
- gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
- gtk_widget_show (button);
-
- gtk_header_bar_pack_start (GTK_HEADER_BAR (ev_previewer_toolbar), hbox);
- gtk_widget_show (hbox);
-
/* Page selector */
tool_item = GTK_WIDGET (g_object_new (EV_TYPE_PAGE_ACTION_WIDGET, NULL));
gtk_widget_set_tooltip_text (tool_item, _("Select page or search in the index"));
diff --git a/previewer/previewer.ui b/previewer/previewer.ui
index 0f1f3446..cb7dc4c3 100644
--- a/previewer/previewer.ui
+++ b/previewer/previewer.ui
@@ -14,20 +14,6 @@
<class name="suggested-action"/>
</style>
</object>
- <object class="GtkButton" id="go-previous-page">
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Previous Page</property>
- <property name="action_name">win.go-previous-page</property>
- <property name="image">go-previous-symbolic</property>
- </object>
- <object class="GtkButton" id="go-next-page">
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Next Page</property>
- <property name="action_name">win.go-next-page</property>
- <property name="image">go-next-symbolic</property>
- </object>
<object class="GtkButton" id="zoom-in">
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -50,16 +36,6 @@
<property name="action_name">win.zoom-default</property>
<property name="image">zoom-default-symbolic</property>
</object>
- <object class="GtkImage" id="go-previous-symbolic">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">go-previous-symbolic</property>
- </object>
- <object class="GtkImage" id="go-next-symbolic">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">go-next-symbolic</property>
- </object>
<object class="GtkImage" id="zoom-in-symbolic">
<property name="visible">True</property>
<property name="can_focus">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]