Add a mechanism to de-register a Terminal() that's being destroyed

This commit is contained in:
Chris Jones 2009-10-05 22:15:22 +01:00
parent 7ea1e18f20
commit 414e7f0731
2 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class Container(object):
if not self.remove(widget):
return(False)
self.terminator.deregister_terminal(widget)
self.emit('need_group_hoover')
return(True)

View File

@ -44,6 +44,11 @@ class Terminator(Borg):
self.terminals.append(terminal)
def deregister_terminal(self, terminal):
"""De-register a terminal widget"""
self.terminals.remove(terminal)
def reconfigure_terminals(self):
"""Tell all terminals to update their configuration"""