diff options
author | Sascha 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) |
commit | 293bf24e6c194fa83ceefb148a2e5dec392635db (patch) | |
tree | e828d96a5d8bb68182a42fe194209fb8d1f3d938 | |
parent | a92234311aadb32e81fc570b986c3b7e130d026c (diff) |
implement itt/window-toolbar-remove
-rw-r--r-- | src/sugar/graphics/window.py | 5 |
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 |