diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 10:38:38 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-19 10:38:38 (GMT) |
commit | c7c3efc21f970868c633bc87b03259b9a7178eff (patch) | |
tree | 7418c5c573c763b81858f31188d09f7cb4ad80e8 | |
parent | 79eaebd470cd98a2185b7863e50571db2204534a (diff) |
Fix update of zoom control. Bug 308268
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | shell/ev-window.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2005-06-19 Nickolay V. Shmyrev <nshmyrev@yandex.ru> + + * shell/ev-window.c: (zoom_control_changed_cb): + + Fix update of zoom control (bug 308268). + Sat Jun 18 22:46:42 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-properties.c (set_property): escape the text correctly. diff --git a/shell/ev-window.c b/shell/ev-window.c index 509ac25..693e069 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 |