[evince] shell: Tidy up modes in toolbar
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] shell: Tidy up modes in toolbar
- Date: Sat, 30 Jun 2018 02:55:09 +0000 (UTC)
commit 98f9785f41376b4fabeda340b75f629267757f43
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Fri Jun 29 22:52:55 2018 -0400
shell: Tidy up modes in toolbar
Normal and Fullscreen modes share the same buttons setting, it
does not make sense to have the code duplicated.
shell/ev-toolbar.c | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index af8c5e54..0980a8df 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -371,15 +371,6 @@ ev_toolbar_set_mode (EvToolbar *ev_toolbar,
switch (mode) {
case EV_TOOLBAR_MODE_NORMAL:
- gtk_widget_show (priv->view_menu_button);
- gtk_widget_show (priv->action_menu_button);
- gtk_widget_show (priv->history_action);
- gtk_widget_show (priv->zoom_action);
- gtk_widget_show (priv->page_selector);
- gtk_widget_show (priv->find_button);
- gtk_widget_show (priv->annots_button);
- gtk_widget_hide (priv->open_button);
- break;
case EV_TOOLBAR_MODE_FULLSCREEN:
gtk_widget_show (priv->view_menu_button);
gtk_widget_show (priv->action_menu_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]