small bugfix: we save the Join_groupchat_window instance in the __init__ function

This commit is contained in:
Yann Leboulanger 2005-04-06 22:03:12 +00:00
parent 91d6e8841a
commit 10dcd45494
1 changed files with 2 additions and 2 deletions

View File

@ -1686,13 +1686,13 @@ class Service_discovery_window:
return # not ready
'is executed on each keypress'
text = self.comboboxentry_entry.get_text()
self.on_go_button_clicked(widget)
def on_address_comboboxentry_button_press_event(self, widget, event):
return # not ready
if event.click == 1: #Left click (user possibly selected sth)
pass
def on_services_treeview_row_activated(self, widget, path, col=0):
"""When a row is activated: Register or join the selected agent"""
#if both buttons are sensitive, it will register [default]
@ -1714,7 +1714,7 @@ class Service_discovery_window:
room = services[0]
service = services[1]
if not self.plugin.windows.has_key('join_gc'):
self.plugin.windows['join_gc'] = Join_groupchat_window(self.plugin, self.account, service, room)
Join_groupchat_window(self.plugin, self.account, service, room)
def on_register_button_clicked(self, widget):
"""When we want to register an agent :