changeset 779b74ba4bab in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=779b74ba4bab
description: fix Gajim startup when bonjour is not available.

diffstat:

 src/roster_window.py |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c91f3f3e0e1f -r 779b74ba4bab src/roster_window.py
--- a/src/roster_window.py      Wed Nov 25 13:29:57 2009 +0100
+++ b/src/roster_window.py      Thu Nov 26 23:00:57 2009 +0100
@@ -6039,8 +6039,12 @@
                                gajim.config.set('show_roster_on_startup', True)
 
                if len(gajim.connections) == 0: # if we have no account
-                       gajim.interface.instances['account_creation_wizard'] = \
-                               config.AccountCreationWizardWindow()
+                       def _open_wizard():
+                               
gajim.interface.instances['account_creation_wizard'] = \
+                                       config.AccountCreationWizardWindow()
+                       # Open wizard only after roster is created, so we can 
make it transient
+                       # for the roster window
+                       gobject.idle_add(_open_wizard)
                if not gajim.ZEROCONF_ACC_NAME in 
gajim.config.get_per('accounts'):
                        # Create zeroconf in config file
                        from common.zeroconf import connection_zeroconf
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to