Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2004-03-30 18:58:18 +0400
committerYann Leboulanger <asterix@lagaule.org>2004-03-30 18:58:18 +0400
commit85f081452f93c3632bbaeb4260ee3d0304d0352f (patch)
treed6b0a880d1515f1a560af8ae8c5a3b7603be3b16
parent86d3ac2b3eba09b4bab4269bc9f429f1be2e8be7 (diff)
About window can now be closed and reopened
-rw-r--r--plugins/gtkgui/gtkgui.glade2
-rw-r--r--plugins/gtkgui/gtkgui.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade
index f872a9710..cf7b31eab 100644
--- a/plugins/gtkgui/gtkgui.glade
+++ b/plugins/gtkgui/gtkgui.glade
@@ -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>
diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py
index cd3460440..2f80eb56a 100644
--- a/plugins/gtkgui/gtkgui.py
+++ b/plugins/gtkgui/gtkgui.py
@@ -559,8 +559,9 @@ class about_Window:
"""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 @@ class roster_Window:
"""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 :