From ec1c20540ab35bca53e1f9d6da824632b72e829e Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 16 Nov 2009 21:58:12 -0600 Subject: [PATCH] switch to new window registration logic --- terminatorlib/window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 520e1f52..c66ba94b 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -38,7 +38,7 @@ class Window(Container, gtk.Window): def __init__(self): """Class initialiser""" self.terminator = Terminator() - self.terminator.window = self + self.terminator.register_window(self) Container.__init__(self) gtk.Window.__init__(self) @@ -109,6 +109,7 @@ class Window(Container, gtk.Window): def on_destroy_event(self, widget, data=None): """Handle window descruction""" + self.terminator.deregister_window(self) pass def on_hide_window(self, data): @@ -122,7 +123,7 @@ class Window(Container, gtk.Window): gtk.gdk.WINDOW_STATE_FULLSCREEN) self.ismaximised = bool(event.new_window_state & gtk.gdk.WINDOW_STATE_MAXIMIZED) - dbg('window state changed: fullscreen %s, maximised %s' % + dbg('Window::on_window_state_changed: fullscreen=%s, maximised=%s' % (self.isfullscreen, self.ismaximised)) return(False)