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:
parent
9d45394d40
commit
17537c7710
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user