Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readtoolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'readtoolbar.py')
-rw-r--r--readtoolbar.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/readtoolbar.py b/readtoolbar.py
index 332e4fa..8d610ea 100644
--- a/readtoolbar.py
+++ b/readtoolbar.py
@@ -255,7 +255,10 @@ class ViewToolbar(gtk.Toolbar):
__gsignals__ = {
'needs-update-size': (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
- ([]))
+ ([])),
+ 'go-fullscreen': (gobject.SIGNAL_RUN_FIRST,
+ gobject.TYPE_NONE,
+ ([]))
}
def __init__(self, evince_view):
@@ -318,6 +321,17 @@ class ViewToolbar(gtk.Toolbar):
self._update_zoom_buttons()
+ spacer = gtk.SeparatorToolItem()
+ spacer.props.draw = False
+ self.insert(spacer, -1)
+ spacer.show()
+
+ self._fullscreen = ToolButton('view-fullscreen')
+ self._fullscreen.set_tooltip(_('Fullscreen'))
+ self._fullscreen.connect('clicked', self._fullscreen_cb)
+ self.insert(self._fullscreen, -1)
+ self._fullscreen.show()
+
def _zoom_spin_notify_value_cb(self, zoom_spin, pspec):
self._evince_view.disconnect(self._view_notify_zoom_handler)
try:
@@ -364,3 +378,5 @@ class ViewToolbar(gtk.Toolbar):
self._evince_view.props.zoom = 1.0
self._update_zoom_buttons()
+ def _fullscreen_cb(self, button):
+ self.emit('go-fullscreen')