we no longer keep xml_console_window forever in me. we allocate on demand
This commit is contained in:
parent
2f9b0eab28
commit
1a3696a026
|
@ -1400,6 +1400,7 @@ class XMLConsoleWindow:
|
||||||
title = _('XML Console')
|
title = _('XML Console')
|
||||||
|
|
||||||
self.window.set_title(title)
|
self.window.set_title(title)
|
||||||
|
self.window.show_all()
|
||||||
|
|
||||||
self.xml.signal_autoconnect(self)
|
self.xml.signal_autoconnect(self)
|
||||||
|
|
||||||
|
|
|
@ -1800,10 +1800,6 @@ class Interface:
|
||||||
# get instances for windows/dialogs that will show_all()/hide()
|
# get instances for windows/dialogs that will show_all()/hide()
|
||||||
self.instances['file_transfers'] = dialogs.FileTransfersWindow()
|
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(100, self.autoconnect)
|
||||||
gobject.timeout_add(200, self.process_connections)
|
gobject.timeout_add(200, self.process_connections)
|
||||||
gobject.timeout_add(500, self.read_sleepy)
|
gobject.timeout_add(500, self.read_sleepy)
|
||||||
|
|
|
@ -549,7 +549,8 @@ class RosterWindow:
|
||||||
if gajim.interface.instances[account].has_key('xml_console'):
|
if gajim.interface.instances[account].has_key('xml_console'):
|
||||||
gajim.interface.instances[account]['xml_console'].window.present()
|
gajim.interface.instances[account]['xml_console'].window.present()
|
||||||
else:
|
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):
|
def on_set_motd_menuitem_activate(self, widget, account):
|
||||||
server = gajim.config.get_per('accounts', account, 'hostname')
|
server = gajim.config.get_per('accounts', account, 'hostname')
|
||||||
|
|
Loading…
Reference in New Issue