Codebase list sugar-read-activity / 08a4078
Home/End keys for going to start and end of document in epub adapter Signed-off-by: Manuel QuiƱones <manuel.por.aca@gmail.com> Acked-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 12 years ago
1 changed file(s) with 12 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
248248 Scrolling is horizontal if horizontal is set to True
249249 Valid scrolltypes are:
250250 gtk.SCROLL_PAGE_BACKWARD, gtk.SCROLL_PAGE_FORWARD,
251 gtk.SCROLL_STEP_BACKWARD and gtk.SCROLL_STEP_FORWARD
251 gtk.SCROLL_STEP_BACKWARD, gtk.SCROLL_STEP_FORWARD
252 gtk.SCROLL_STEP_START and gtk.SCROLL_STEP_STOP
252253 '''
253254 if scrolltype == gtk.SCROLL_PAGE_BACKWARD:
254255 self.__going_back = True
270271 self.__going_back = False
271272 if not self._do_page_transition():
272273 self._view.move_cursor(gtk.MOVEMENT_DISPLAY_LINES, 1)
274 elif scrolltype == gtk.SCROLL_START:
275 self.__going_back = True
276 self.__going_fwd = False
277 if not self._do_page_transition():
278 self.set_current_page(1)
279 elif scrolltype == gtk.SCROLL_END:
280 self.__going_back = False
281 self.__going_fwd = True
282 if not self._do_page_transition():
283 self.set_current_page(self._pagecount - 1)
273284 else:
274285 print ('Got unsupported scrolltype %s' % str(scrolltype))
275286