From c7c3efc21f970868c633bc87b03259b9a7178eff Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Sun, 19 Jun 2005 10:38:38 +0000 Subject: [PATCH] Fix update of zoom control. Bug 308268 --- ChangeLog | 6 ++++++ shell/ev-window.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ececb0b8..27e37a66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-19 Nickolay V. Shmyrev + + * shell/ev-window.c: (zoom_control_changed_cb): + + Fix update of zoom control (bug 308268). + Sat Jun 18 22:46:42 2005 Jonathan Blandford * shell/ev-properties.c (set_property): escape the text correctly. diff --git a/shell/ev-window.c b/shell/ev-window.c index 509ac252..693e0698 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2390,10 +2390,13 @@ zoom_control_changed_cb (EphyZoomAction *action, mode = EV_SIZING_FIT_WIDTH; } else { mode = EV_SIZING_FREE; - ev_view_set_zoom (EV_VIEW (ev_window->priv->view), zoom, FALSE); } ev_view_set_sizing_mode (EV_VIEW (ev_window->priv->view), mode); + + if (mode == EV_SIZING_FREE) { + ev_view_set_zoom (EV_VIEW (ev_window->priv->view), zoom, FALSE); + } } static void -- 2.43.5