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>
This commit is contained in:
Sascha Silbe 2010-07-05 01:34:14 +00:00
parent 9d45394d40
commit 17537c7710

View File

@ -191,6 +191,7 @@ class Window(gtk.Window):
if self._toolbar_box:
self.__vbox.remove(self._toolbar_box)
if toolbar_box:
self.__vbox.pack_start(toolbar_box, False)
self.__vbox.reorder_child(toolbar_box, 0)