use tupple not list when nothing list-special is needed; fix comment

This commit is contained in:
Nikos Kouremenos 2005-11-14 14:19:53 +00:00
parent 416015ccc2
commit 17b5ff7022
1 changed files with 5 additions and 5 deletions

View File

@ -147,13 +147,13 @@ class OptionsParser:
'accountfontattrs', 'grouptextcolor', 'groupbgcolor', 'groupfont', 'accountfontattrs', 'grouptextcolor', 'groupbgcolor', 'groupfont',
'groupfontattrs', 'contacttextcolor', 'contactbgcolor', 'contactfont', 'groupfontattrs', 'contacttextcolor', 'contactbgcolor', 'contactfont',
'contactfontattrs', 'bannertextcolor', 'bannerbgcolor'] 'contactfontattrs', 'bannertextcolor', 'bannerbgcolor']
for theme_name in ['grocery', 'plain']: for theme_name in ('grocery', 'plain'):
if theme_name not in gajim.config.get_per('themes'): if theme_name not in gajim.config.get_per('themes'):
gajim.config.add_per('themes', theme_name) gajim.config.add_per('themes', theme_name)
theme = gajim.config.themes_default[theme_name] theme = gajim.config.themes_default[theme_name]
for o in d: for o in d:
gajim.config.set_per('themes', theme_name, o, theme[d.index(o)]) gajim.config.set_per('themes', theme_name, o, theme[d.index(o)])
# Remove cyan theme if it's not the default theme # Remove cyan theme if it's not the current theme
if gajim.config.get('roster_theme') != 'cyan' and \ if gajim.config.get('roster_theme') != 'cyan' and \
'cyan' in gajim.config.get_per('themes'): 'cyan' in gajim.config.get_per('themes'):
gajim.config.del_per('themes', 'cyan') gajim.config.del_per('themes', 'cyan')
@ -161,11 +161,11 @@ class OptionsParser:
for account in gajim.config.get_per('accounts'): for account in gajim.config.get_per('accounts'):
proxies = gajim.config.get_per('accounts', account, proxies = gajim.config.get_per('accounts', account,
'file_transfer_proxies') 'file_transfer_proxies')
for new in ['proxy.netlab.cz', 'proxy65.jabber.ccc.de', for new in ('proxy.netlab.cz', 'proxy65.jabber.ccc.de',
'proxy65.unstable.nl']: 'proxy65.unstable.nl'):
if proxies.find(new) < 0: if proxies.find(new) < 0:
proxies += ', ' + new proxies += ', ' + new
gajim.config.set_per('accounts', account,'file_transfer_proxies', gajim.config.set_per('accounts', account, 'file_transfer_proxies',
proxies) proxies)
# Add some emots :-* :* >:) >:-) <3 # Add some emots :-* :* >:) >:-) <3
for emot in [':-*', ':*', '>:)', '>:-)', '<3']: for emot in [':-*', ':*', '>:)', '>:-)', '<3']: