we no longer keep xml_console_window forever in me. we allocate on demand

This commit is contained in:
Nikos Kouremenos 2006-04-05 12:01:21 +00:00
parent 2f9b0eab28
commit 1a3696a026
3 changed files with 3 additions and 5 deletions

View File

@ -1400,6 +1400,7 @@ class XMLConsoleWindow:
title = _('XML Console')
self.window.set_title(title)
self.window.show_all()
self.xml.signal_autoconnect(self)

View File

@ -1800,10 +1800,6 @@ class Interface:
# get instances for windows/dialogs that will show_all()/hide()
self.instances['file_transfers'] = dialogs.FileTransfersWindow()
for account in gajim.connections:
self.instances[account]['xml_console'] = dialogs.XMLConsoleWindow(
account)
gobject.timeout_add(100, self.autoconnect)
gobject.timeout_add(200, self.process_connections)
gobject.timeout_add(500, self.read_sleepy)

View File

@ -549,7 +549,8 @@ class RosterWindow:
if gajim.interface.instances[account].has_key('xml_console'):
gajim.interface.instances[account]['xml_console'].window.present()
else:
gajim.interface.instances[account]['xml_console'].window.show_all()
gajim.interface.instances[account]['xml_console'] = \
dialogs.XMLConsoleWindow(account)
def on_set_motd_menuitem_activate(self, widget, account):
server = gajim.config.get_per('accounts', account, 'hostname')