close button fixes

svn: r6408
This commit is contained in:
Don Allingham 2006-04-22 03:31:29 +00:00
parent d894db5ce8
commit 0158575672

View File

@ -65,8 +65,8 @@ class PluginStatus(ManagedWindow.ManagedWindow):
) )
) )
self.window.set_size_request(600,400) self.window.set_size_request(600,400)
self.window.connect('delete-event',self.close) self.window.connect('delete-event',self.close_window)
self.window.connect('response', self.close) self.window.connect('response', self.close_window)
scrolled_window = gtk.ScrolledWindow() scrolled_window = gtk.ScrolledWindow()
self.list = gtk.TreeView() self.list = gtk.TreeView()
@ -110,6 +110,9 @@ class PluginStatus(ManagedWindow.ManagedWindow):
'<span weight="bold" color="#267726">%s</span>' % _("OK"), '<span weight="bold" color="#267726">%s</span>' % _("OK"),
i[0], descr, None]) i[0], descr, None])
def close_window(self, *obj):
self.close()
def button_press(self, obj, event): def button_press(self, obj, event):
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1: if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
model, node = self.selection.get_selected() model, node = self.selection.get_selected()