diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-09-05 20:31:16 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-09-05 21:44:59 (GMT) |
commit | defd57dffbf8c24a1dd6ab33d69a4a92c1102151 (patch) | |
tree | 1e5a5ac41bddaa83f9cffd11b6cb776c0b27100f /evinceadapter.py | |
parent | ef8b57606d8f4d49354d5019317ecc649ecdf521 (diff) |
Add rotate buttons - SL #4583
Right now, is implemented only for pdf files.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'evinceadapter.py')
-rw-r--r-- | evinceadapter.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/evinceadapter.py b/evinceadapter.py index 3a1f263..31859d9 100644 --- a/evinceadapter.py +++ b/evinceadapter.py @@ -122,6 +122,17 @@ class EvinceViewer(): def previous_page(self): self._view.previous_page() + def rotate_left(self): + rotation = self._model.get_rotation() + self._model.set_rotation(rotation - 90) + + def rotate_right(self): + rotation = self._model.get_rotation() + self._model.set_rotation(rotation + 90) + + def can_rotate(self): + return True + def get_pagecount(self): ''' Returns the pagecount of the loaded file |