From 0158575672573483bc597f7263bb1347d29c60da Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 22 Apr 2006 03:31:29 +0000 Subject: [PATCH] close button fixes svn: r6408 --- gramps2/src/PluginUtils/_PluginStatus.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/src/PluginUtils/_PluginStatus.py b/gramps2/src/PluginUtils/_PluginStatus.py index 52dca5c44..897dd95e6 100644 --- a/gramps2/src/PluginUtils/_PluginStatus.py +++ b/gramps2/src/PluginUtils/_PluginStatus.py @@ -65,8 +65,8 @@ class PluginStatus(ManagedWindow.ManagedWindow): ) ) self.window.set_size_request(600,400) - self.window.connect('delete-event',self.close) - self.window.connect('response', self.close) + self.window.connect('delete-event',self.close_window) + self.window.connect('response', self.close_window) scrolled_window = gtk.ScrolledWindow() self.list = gtk.TreeView() @@ -110,6 +110,9 @@ class PluginStatus(ManagedWindow.ManagedWindow): '%s' % _("OK"), i[0], descr, None]) + def close_window(self, *obj): + self.close() + def button_press(self, obj, event): if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1: model, node = self.selection.get_selected()