Commit 85f08145 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

About window can now be closed and reopened

parent 86d3ac2b
......@@ -896,7 +896,7 @@ Yann Le Boulanger (asterix@crans.org)</property>
<property name="label">gtk-close</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="gtk_widget_destroy" last_modification_time="Sun, 26 Oct 2003 20:45:42 GMT"/>
<signal name="clicked" handler="on_close_clicked" last_modification_time="Sun, 26 Oct 2003 20:45:42 GMT"/>
</widget>
</child>
</widget>
......
......@@ -559,8 +559,9 @@ def on_close(self, widget):
"""When Close button is clicked"""
widget.get_toplevel().destroy()
def __init__(self):
def __init__(self, plugin):
xml = gtk.glade.XML(GTKGUI_GLADE, 'About')
self.plugin = plugin
xml.signal_connect('gtk_widget_destroy', self.delete_event)
xml.signal_connect('on_close_clicked', self.on_close)
......@@ -1516,7 +1517,7 @@ def on_about(self, widget):
"""When about is selected :
call the about class"""
if not self.plugin.windows.has_key('about'):
self.plugin.windows['about'] = about_Window()
self.plugin.windows['about'] = about_Window(self.plugin)
def on_accounts(self, widget):
"""When accounts is seleted :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment