Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/labyrinthactivity.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-04-10 13:05:26 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-04-10 13:05:26 (GMT)
commit1cc6acd8e6f387f15c824c46c8f879400b49a2a7 (patch)
treee14264c64e3accd5a914fe508375ff46d7ba013f /labyrinthactivity.py
parent7d4d7d767c6d69e271d2cbe4bf53bdb153951d50 (diff)
Added accelerator keys for zoom out and in
Diffstat (limited to 'labyrinthactivity.py')
-rw-r--r--labyrinthactivity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/labyrinthactivity.py b/labyrinthactivity.py
index 21d46c0..12c8030 100644
--- a/labyrinthactivity.py
+++ b/labyrinthactivity.py
@@ -119,11 +119,13 @@ class LabyrinthActivity(activity.Activity):
self._zoom_in = ToolButton('zoom-in')
self._zoom_in.set_tooltip(_('Zoom in'))
+ self._zoom_in.set_accelerator(_('<ctrl>i'))
self._zoom_in.connect('clicked', self.__zoom_in_cb)
view_toolbar.insert(self._zoom_in, -1)
self._zoom_out = ToolButton('zoom-out')
self._zoom_out.set_tooltip(_('Zoom out'))
+ self._zoom_out.set_accelerator(_('<ctrl>o'))
self._zoom_out.connect('clicked', self.__zoom_out_cb)
view_toolbar.insert(self._zoom_out, -1)