From cfd108bffc8580fa8960b344e72c77bc90a0c265 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 12 Mar 2005 23:48:08 +0000 Subject: [PATCH] bugfix in about dialog: destroy it when we press close --- plugins/gtkgui/dialogs.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index 4c8480d4f..8860b6cf2 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -454,16 +454,6 @@ class add_contact_window: class About_dialog: """Class for about dialog""" - def delete_event(self, widget): - """close window""" - #del self.plugin.windows['about'] # remove us from open windows - pass - - def on_close(self, widget): - """When Close button is clicked""" - #widget.get_toplevel().destroy() - pass - def __init__(self, plugin): self.plugin = plugin #xml.get_widget('logo_image').set_from_file('plugins/gtkgui/pixmaps/logo.png') @@ -487,16 +477,12 @@ GNU General Public License for more details.''') dlg.set_logo(gtk.gdk.pixbuf_new_from_file('plugins/gtkgui/pixmaps/logo.png')) - dlg.run() - #dlg.show_all() + rep = dlg.run() + dlg.destroy() ''' , version='0.6', 'Nikos Kouremenos', 'The best GTK jabber-only client', 'http://www.gajim.org', 'Official Page', 'GPL', 'Yann') dlg.run() ''' - #xml.signal_connect('gtk_widget_destroy', self.delete_event) - #xml.signal_connect('on_close_clicked', self.on_close) - - #self.plugin.windows['about'] = self # add us to open windows class Confirmation_dialog: """Class for confirmation dialog"""