Fix bogus child spawning. realize happens more than you might hope.
This commit is contained in:
parent
ef1e82e5b0
commit
ede7fc7552
|
@ -246,7 +246,6 @@ class Terminal(gtk.VBox):
|
||||||
self.on_vte_notify_enter)
|
self.on_vte_notify_enter)
|
||||||
|
|
||||||
self.vte.connect_after('realize', self.reconfigure)
|
self.vte.connect_after('realize', self.reconfigure)
|
||||||
self.vte.connect_after('realize', self.spawn_child)
|
|
||||||
|
|
||||||
def create_popup_group_menu(self, widget, event = None):
|
def create_popup_group_menu(self, widget, event = None):
|
||||||
"""Pop up a menu for the group widget"""
|
"""Pop up a menu for the group widget"""
|
||||||
|
|
|
@ -17,6 +17,7 @@ foo.register_terminal(term)
|
||||||
|
|
||||||
window.add(term)
|
window.add(term)
|
||||||
window.show()
|
window.show()
|
||||||
|
term.spawn_child()
|
||||||
|
|
||||||
window.connect("destroy", on_window_destroyed)
|
window.connect("destroy", on_window_destroyed)
|
||||||
|
|
||||||
|
|
|
@ -199,6 +199,7 @@ class Window(Container, gtk.Window):
|
||||||
container.show()
|
container.show()
|
||||||
|
|
||||||
self.add(container)
|
self.add(container)
|
||||||
|
sibling.spawn_child()
|
||||||
|
|
||||||
class WindowTitle(object):
|
class WindowTitle(object):
|
||||||
"""Class to handle the setting of the window title"""
|
"""Class to handle the setting of the window title"""
|
||||||
|
|
Loading…
Reference in New Issue