From ede7fc7552cd7af06778cb48a31d6c77ae7a9084 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 27 Oct 2009 23:23:59 +0000 Subject: [PATCH] Fix bogus child spawning. realize happens more than you might hope. --- terminatorlib/terminal.py | 1 - terminatorlib/test.py | 1 + terminatorlib/window.py | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index b803c637..fe256191 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -246,7 +246,6 @@ class Terminal(gtk.VBox): self.on_vte_notify_enter) self.vte.connect_after('realize', self.reconfigure) - self.vte.connect_after('realize', self.spawn_child) def create_popup_group_menu(self, widget, event = None): """Pop up a menu for the group widget""" diff --git a/terminatorlib/test.py b/terminatorlib/test.py index d809c477..9438b9b7 100755 --- a/terminatorlib/test.py +++ b/terminatorlib/test.py @@ -17,6 +17,7 @@ foo.register_terminal(term) window.add(term) window.show() +term.spawn_child() window.connect("destroy", on_window_destroyed) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index a2598a64..ea00964c 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -199,6 +199,7 @@ class Window(Container, gtk.Window): container.show() self.add(container) + sibling.spawn_child() class WindowTitle(object): """Class to handle the setting of the window title"""