Only spawn a child in the sibling if we created it

This commit is contained in:
Chris Jones 2010-02-04 00:59:11 +00:00
parent 1aadbae30b
commit 15ea22b4ff
3 changed files with 3 additions and 4 deletions

View File

@ -299,6 +299,7 @@ class Window(Container, gtk.Window):
if not sibling:
sibling = maker.make('Terminal')
sibling.spawn_child()
self.add(container)
container.show_all()
@ -306,8 +307,6 @@ class Window(Container, gtk.Window):
container.add(term)
container.show_all()
sibling.spawn_child()
def zoom(self, widget, font_scale=True):
"""Zoom a terminal widget"""
children = self.get_children()