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,8 +191,9 @@ class Window(gtk.Window):
|
|||||||
if self._toolbar_box:
|
if self._toolbar_box:
|
||||||
self.__vbox.remove(self._toolbar_box)
|
self.__vbox.remove(self._toolbar_box)
|
||||||
|
|
||||||
self.__vbox.pack_start(toolbar_box, False)
|
if toolbar_box:
|
||||||
self.__vbox.reorder_child(toolbar_box, 0)
|
self.__vbox.pack_start(toolbar_box, False)
|
||||||
|
self.__vbox.reorder_child(toolbar_box, 0)
|
||||||
|
|
||||||
self._toolbar_box = toolbar_box
|
self._toolbar_box = toolbar_box
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user