Author: asterix Date: 2008-06-02 23:22:35 +0200 (Mon, 02 Jun 2008) New Revision: 9744
Modified: trunk/src/config.py trunk/src/gajim.py Log: ability to rename zeroconf account. Fixes #3945
Modified: trunk/src/config.py =================================================================== --- trunk/src/config.py 2008-06-02 17:59:59 UTC (rev 9743) +++ trunk/src/config.py 2008-06-02 21:22:35 UTC (rev 9744) @@ -1417,7 +1417,6 @@ self.current_account = account if account == gajim.ZEROCONF_ACC_NAME: self.remove_button.set_sensitive(False) - self.rename_button.set_sensitive(False) self.init_account() self.update_proxy_list()
@@ -1752,6 +1751,8 @@ gajim.config.del_per('accounts', old_name) if self.current_account == old_name: self.current_account = new_name + if old_name == gajim.ZEROCONF_ACC_NAME: + gajim.ZEROCONF_ACC_NAME = new_name # refresh roster gajim.interface.roster.setup_and_draw_roster() self.init_accounts()
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2008-06-02 17:59:59 UTC (rev 9743) +++ trunk/src/gajim.py 2008-06-02 21:22:35 UTC (rev 9744) @@ -3224,6 +3224,10 @@ if os.name != 'nt' and gajim.config.get('check_if_gajim_is_default'): gtkgui_helpers.possibly_set_gajim_as_xmpp_handler()
+ for account in gajim.config.get_per('accounts'): + if gajim.config.get_per('accounts', account, 'is_zeroconf'): + gajim.ZEROCONF_ACC_NAME = account + break # Is gnome configured to activate row on single click ? try: import gconf