Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-02-25 02:31:44 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-02-25 02:31:44 (GMT)
commitaa4394cf7bc6a176af02401bbc85babe90a64357 (patch)
treeb0602d971b129226132d4ecf0c61972d1799c852
parentcb51552ad07afd939a719a31a5915ffdc66a41de (diff)
more general implememtaion of toolbar rearrangingHEADmaster
-rw-r--r--labyrinthactivity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/labyrinthactivity.py b/labyrinthactivity.py
index 8f83d83..eefb381 100644
--- a/labyrinthactivity.py
+++ b/labyrinthactivity.py
@@ -556,6 +556,9 @@ class LabyrinthActivity(activity.Activity):
toolbar_box.toolbar.insert(tool, -1)
self.show_all()
+
+ self.__configure_cb(None)
+
self._mode = MMapArea.MODE_TEXT
self._main_area.set_mode(self._mode)
self.mods[MMapArea.MODE_TEXT].set_active(True)
@@ -610,9 +613,7 @@ class LabyrinthActivity(activity.Activity):
logging.debug(self._main_area.get_allocation())
self._vbox.show()
- if event is None:
- return
- if gtk.gdk.screen_width() > gtk.gdk.screen_height():
+ if gtk.gdk.screen_width() / 14 > style.GRID_CELL_SIZE:
self.separator_1.show()
self.separator_1.props.draw = True
self.separator_2.show()