Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-07-04 20:26:05 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-07-04 20:26:05 (GMT)
commit293bf24e6c194fa83ceefb148a2e5dec392635db (patch)
treee828d96a5d8bb68182a42fe194209fb8d1f3d938
parenta92234311aadb32e81fc570b986c3b7e130d026c (diff)
-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