From 54cf955817b8fc750e0b38799a75acc0e71116be Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 17 May 2005 15:12:44 +0000 Subject: [PATCH] Get rid of View->Normal Size, it's just confusing 2005-05-17 Marco Pesenti Gritti * data/evince-ui.xml: * shell/ev-view.c: * shell/ev-view.h: * shell/ev-window.c: (update_action_sensitivity): Get rid of View->Normal Size, it's just confusing --- ChangeLog | 9 +++++++++ data/evince-ui.xml | 1 - shell/ev-view.c | 7 ------- shell/ev-view.h | 1 - shell/ev-window.c | 13 ------------- 5 files changed, 9 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index e46a2ce7..5eec6648 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-05-17 Marco Pesenti Gritti + + * data/evince-ui.xml: + * shell/ev-view.c: + * shell/ev-view.h: + * shell/ev-window.c: (update_action_sensitivity): + + Get rid of View->Normal Size, it's just confusing + Tue May 17 00:51:21 2005 Jonathan Blandford * backend/ev-document-info.h: diff --git a/data/evince-ui.xml b/data/evince-ui.xml index 38753226..c049cc08 100644 --- a/data/evince-ui.xml +++ b/data/evince-ui.xml @@ -33,7 +33,6 @@ - diff --git a/shell/ev-view.c b/shell/ev-view.c index cf60e36b..12ed30c8 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2471,13 +2471,6 @@ ev_view_zoom_for_size_single_page (EvView *view, ev_view_set_zoom (view, scale, FALSE); } - -void -ev_view_zoom_normal (EvView *view) -{ - ev_view_set_zoom (view, 1.0, FALSE); -} - void ev_view_set_zoom_for_size (EvView *view, int width, diff --git a/shell/ev-view.h b/shell/ev-view.h index f0492e33..ea55fcd6 100644 --- a/shell/ev-view.h +++ b/shell/ev-view.h @@ -91,7 +91,6 @@ void ev_view_set_zoom_for_size (EvView *view, int height, int vsb_width, int hsb_height); -void ev_view_zoom_normal (EvView *view); /* Find */ gboolean ev_view_can_find_next (EvView *view); diff --git a/shell/ev-window.c b/shell/ev-window.c index c3543af0..f412a260 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -226,7 +226,6 @@ update_action_sensitivity (EvWindow *ev_window) has_pages && ev_view_can_zoom_in (view)); set_action_sensitive (ev_window, "ViewZoomOut", has_pages && ev_view_can_zoom_out (view)); - set_action_sensitive (ev_window, "ViewNormalSize", has_pages); set_action_sensitive (ev_window, "ViewBestFit", has_pages); set_action_sensitive (ev_window, "ViewPageWidth", has_pages); set_action_sensitive (ev_window, "ViewReload", has_pages); @@ -1739,15 +1738,6 @@ ev_window_cmd_view_zoom_out (GtkAction *action, EvWindow *ev_window) update_action_sensitivity (ev_window); } -static void -ev_window_cmd_view_normal_size (GtkAction *action, EvWindow *ev_window) -{ - g_return_if_fail (EV_IS_WINDOW (ev_window)); - - ev_view_zoom_normal (EV_VIEW (ev_window->priv->view)); - update_action_sensitivity (ev_window); -} - static void ev_window_cmd_go_previous_page (GtkAction *action, EvWindow *ev_window) { @@ -2376,9 +2366,6 @@ static const GtkActionEntry entries[] = { { "ViewZoomOut", GTK_STOCK_ZOOM_OUT, NULL, "minus", N_("Shrink the document"), G_CALLBACK (ev_window_cmd_view_zoom_out) }, - { "ViewNormalSize", GTK_STOCK_ZOOM_100, NULL, "0", - N_("Reset the zoom level to the default value"), - G_CALLBACK (ev_window_cmd_view_normal_size) }, { "ViewReload", GTK_STOCK_REFRESH, N_("_Reload"), "R", N_("Reload the document"), G_CALLBACK (ev_window_cmd_view_reload) }, -- 2.43.5