Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
authorReinier Heeres <rwh@rwh.(none)>2008-03-01 00:14:26 (GMT)
committer Reinier Heeres <rwh@rwh.(none)>2008-03-01 00:14:26 (GMT)
commit553b25b7672dc8e8de61fdc73592eb55dafd53c3 (patch)
treecc0f7fdf64a198aaf42c92bac752ab876621e4dd /readactivity.py
parente15dc6e3450f84d17dbe657f1550b72c42a1677c (diff)
Add fullscreen button
Diffstat (limited to 'readactivity.py')
-rw-r--r--readactivity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/readactivity.py b/readactivity.py
index 6196f1b..3a989d7 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -98,6 +98,8 @@ class ReadActivity(activity.Activity):
self._view_toolbar = ViewToolbar(self._view)
self._view_toolbar.connect('needs-update-size',
self.__view_toolbar_needs_update_size_cb)
+ self._view_toolbar.connect('go-fullscreen',
+ self.__view_toolbar_go_fullscreen_cb)
toolbox.add_toolbar(_('View'), self._view_toolbar)
self._view_toolbar.show()
@@ -422,3 +424,6 @@ class ReadActivity(activity.Activity):
def __view_toolbar_needs_update_size_cb(self, view_toolbar):
self._view.update_view_size(self.canvas)
+ def __view_toolbar_go_fullscreen_cb(self, view_toolbar):
+ self.fullscreen()
+