Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSascha Silbe <silbe@activitycentral.com>2010-07-05 01:34:14 (GMT)
committer Sascha Silbe <silbe@activitycentral.com>2011-02-17 22:23:33 (GMT)
commit17537c77100fab5e801a19d4b0b3d8bff3f72cbb (patch)
tree9ff06cbb4a744bd28e578bdcb49d4352453b7e6b /src
parent9d45394d40fde3488e9a446c52ecc8791e577202 (diff)
Window: allow removing the toolbar_box
Allow the toolbar_box to be removed by setting it to None, like is supported for canvas. Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src')
-rw-r--r--src/sugar/graphics/window.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
index e3bef6b..8f368a8 100644
--- a/src/sugar/graphics/window.py
+++ b/src/sugar/graphics/window.py
@@ -191,8 +191,9 @@ class Window(gtk.Window):
if self._toolbar_box:
self.__vbox.remove(self._toolbar_box)
- self.__vbox.pack_start(toolbar_box, False)
- self.__vbox.reorder_child(toolbar_box, 0)
+ if toolbar_box:
+ self.__vbox.pack_start(toolbar_box, False)
+ self.__vbox.reorder_child(toolbar_box, 0)
self._toolbar_box = toolbar_box