[Sugar-devel] [PATCH] Fix for PDF scrolling with Page Up/Page Down.

Manuel Quiñones manuq at laptop.org
Thu Jun 30 00:32:28 EDT 2011


We were passing wrong second parameter to the scroll method of
evince.View .
---
 evinceadapter.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/evinceadapter.py b/evinceadapter.py
index 3d3350c..3ddcfd4 100644
--- a/evinceadapter.py
+++ b/evinceadapter.py
@@ -228,9 +228,9 @@ class EvinceViewer():
         _logger.error('scroll: %s', scrolltype)
 
         if scrolltype == gtk.SCROLL_PAGE_BACKWARD:
-            self._view.scroll(gtk.SCROLL_PAGE_BACKWARD, -1)
+            self._view.scroll(gtk.SCROLL_PAGE_BACKWARD, horizontal)
         elif scrolltype == gtk.SCROLL_PAGE_FORWARD:
-            self._view.scroll(gtk.SCROLL_PAGE_FORWARD, 1)
+            self._view.scroll(gtk.SCROLL_PAGE_FORWARD, horizontal)
         elif scrolltype == gtk.SCROLL_STEP_BACKWARD:
             self._scroll_step(False)
         elif scrolltype == gtk.SCROLL_STEP_FORWARD:
-- 
1.7.4.4



More information about the Sugar-devel mailing list