From aa4394cf7bc6a176af02401bbc85babe90a64357 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 25 Feb 2013 02:31:44 +0000 Subject: more general implememtaion of toolbar rearranging --- 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() -- cgit v0.9.1