Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban Sanchez <esteban@steve-0.com>2007-01-31 16:41:13 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-01-31 16:41:13 (GMT)
commit86609f06454727a2b94266421ffdaa994b9933e9 (patch)
treebd9fefb990950d3861e438ee6b33a47ee92dc00c
parentb5ed02c17fbbc674b906fe6664319337b7366b12 (diff)
Do not zoom in or out on presentation mode. Fixes bug #401305.
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
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-view.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 770568b..e82714a 100644
--- 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),
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 15053d4..676d08d 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);
}