Only spawn a child in the sibling if we created it
This commit is contained in:
parent
1aadbae30b
commit
15ea22b4ff
|
@ -299,6 +299,7 @@ class Window(Container, gtk.Window):
|
||||||
|
|
||||||
if not sibling:
|
if not sibling:
|
||||||
sibling = maker.make('Terminal')
|
sibling = maker.make('Terminal')
|
||||||
|
sibling.spawn_child()
|
||||||
self.add(container)
|
self.add(container)
|
||||||
container.show_all()
|
container.show_all()
|
||||||
|
|
||||||
|
@ -306,8 +307,6 @@ class Window(Container, gtk.Window):
|
||||||
container.add(term)
|
container.add(term)
|
||||||
container.show_all()
|
container.show_all()
|
||||||
|
|
||||||
sibling.spawn_child()
|
|
||||||
|
|
||||||
def zoom(self, widget, font_scale=True):
|
def zoom(self, widget, font_scale=True):
|
||||||
"""Zoom a terminal widget"""
|
"""Zoom a terminal widget"""
|
||||||
children = self.get_children()
|
children = self.get_children()
|
||||||
|
|
Loading…
Reference in New Issue