]> www.fi.muni.cz Git - evince.git/commitdiff
Do not zoom in or out on presentation mode. Fixes bug #401305.
authorEsteban Sanchez <esteban@steve-0.com>
Wed, 31 Jan 2007 16:41:13 +0000 (16:41 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Wed, 31 Jan 2007 16:41:13 +0000 (16:41 +0000)
2007-01-31  Esteban Sanchez  <esteban@steve-0.com>
* 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

ChangeLog
shell/ev-view.c

index 770568bc60d0842bfcdba4b476cd57a55968bb08..e82714a70f90f34c7b2145385b909e69b0cfc6af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-31  Esteban Sanchez  <esteban@steve-0.com>
+
+       * 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  <nshmyrev@yandex.ru>
 
        * shell/ev-navigation-action.c: (connect_proxy),
index 15053d471a7eecbe3226cf1791c7855ae60511d3..676d08d0f5698a221582120d355c9f8f0d212cea 100644 (file)
@@ -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);
 }