Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/evinceadapter.py
diff options
context:
space:
mode:
Diffstat (limited to 'evinceadapter.py')
-rw-r--r--evinceadapter.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/evinceadapter.py b/evinceadapter.py
index 3d3350c..863dbd5 100644
--- a/evinceadapter.py
+++ b/evinceadapter.py
@@ -223,7 +223,8 @@ class EvinceViewer():
Scrolling is horizontal if horizontal is set to True
Valid scrolltypes are:
gtk.SCROLL_PAGE_BACKWARD, gtk.SCROLL_PAGE_FORWARD,
- gtk.SCROLL_STEP_BACKWARD and gtk.SCROLL_STEP_FORWARD
+ gtk.SCROLL_STEP_BACKWARD, gtk.SCROLL_STEP_FORWARD,
+ gtk.SCROLL_START and gtk.SCROLL_END
'''
_logger.error('scroll: %s', scrolltype)
@@ -235,6 +236,10 @@ class EvinceViewer():
self._scroll_step(False)
elif scrolltype == gtk.SCROLL_STEP_FORWARD:
self._scroll_step(True)
+ elif scrolltype == gtk.SCROLL_START:
+ self.set_current_page(0)
+ elif scrolltype == gtk.SCROLL_END:
+ self.set_current_page(self._document.get_n_pages())
else:
print ('Got unsupported scrolltype %s' % str(scrolltype))