From: Esteban Sanchez Date: Wed, 31 Jan 2007 16:41:13 +0000 (+0000) Subject: Do not zoom in or out on presentation mode. Fixes bug #401305. X-Git-Tag: EVINCE_0_7_2~40 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=86609f06454727a2b94266421ffdaa994b9933e9;p=evince.git Do not zoom in or out on presentation mode. Fixes bug #401305. 2007-01-31 Esteban Sanchez * shell/ev-view.c: (ev_view_zoom_in), (ev_view_zoom_out): Do not zoom in or out on presentation mode. Fixes bug #401305. svn path=/trunk/; revision=2281 --- diff --git a/ChangeLog b/ChangeLog index 770568bc..e82714a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-31 Esteban Sanchez + + * shell/ev-view.c: (ev_view_zoom_in), (ev_view_zoom_out): + + Do not zoom in or out on presentation mode. Fixes bug #401305. + 2007-01-30 Nickolay V. Shmyrev * shell/ev-navigation-action.c: (connect_proxy), diff --git a/shell/ev-view.c b/shell/ev-view.c index 15053d47..676d08d0 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -3781,6 +3781,9 @@ ev_view_zoom_in (EvView *view) { g_return_if_fail (view->sizing_mode == EV_SIZING_FREE); + if (view->presentation) + return; + view->pending_scroll = SCROLL_TO_CENTER; ev_view_set_zoom (view, ZOOM_IN_FACTOR, TRUE); } @@ -3790,6 +3793,9 @@ ev_view_zoom_out (EvView *view) { g_return_if_fail (view->sizing_mode == EV_SIZING_FREE); + if (view->presentation) + return; + view->pending_scroll = SCROLL_TO_CENTER; ev_view_set_zoom (view, ZOOM_OUT_FACTOR, TRUE); }