Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wusspuss
gajim
Commits
17b5ff70
Commit
17b5ff70
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
use tupple not list when nothing list-special is needed; fix comment
parent
416015cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/optparser.py
+5
-5
5 additions, 5 deletions
src/common/optparser.py
with
5 additions
and
5 deletions
src/common/optparser.py
+
5
−
5
View file @
17b5ff70
...
...
@@ -147,13 +147,13 @@ def update_config_x_to_09(self):
'
accountfontattrs
'
,
'
grouptextcolor
'
,
'
groupbgcolor
'
,
'
groupfont
'
,
'
groupfontattrs
'
,
'
contacttextcolor
'
,
'
contactbgcolor
'
,
'
contactfont
'
,
'
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
'
):
gajim
.
config
.
add_per
(
'
themes
'
,
theme_name
)
theme
=
gajim
.
config
.
themes_default
[
theme_name
]
for
o
in
d
:
gajim
.
config
.
set_per
(
'
themes
'
,
theme_name
,
o
,
theme
[
d
.
index
(
o
)])
# Remove cyan theme if it's not the
defaul
t theme
# Remove cyan theme if it's not the
curren
t theme
if
gajim
.
config
.
get
(
'
roster_theme
'
)
!=
'
cyan
'
and
\
'
cyan
'
in
gajim
.
config
.
get_per
(
'
themes
'
):
gajim
.
config
.
del_per
(
'
themes
'
,
'
cyan
'
)
...
...
@@ -161,11 +161,11 @@ def update_config_x_to_09(self):
for
account
in
gajim
.
config
.
get_per
(
'
accounts
'
):
proxies
=
gajim
.
config
.
get_per
(
'
accounts
'
,
account
,
'
file_transfer_proxies
'
)
for
new
in
[
'
proxy.netlab.cz
'
,
'
proxy65.jabber.ccc.de
'
,
'
proxy65.unstable.nl
'
]
:
for
new
in
(
'
proxy.netlab.cz
'
,
'
proxy65.jabber.ccc.de
'
,
'
proxy65.unstable.nl
'
)
:
if
proxies
.
find
(
new
)
<
0
:
proxies
+=
'
,
'
+
new
gajim
.
config
.
set_per
(
'
accounts
'
,
account
,
'
file_transfer_proxies
'
,
gajim
.
config
.
set_per
(
'
accounts
'
,
account
,
'
file_transfer_proxies
'
,
proxies
)
# Add some emots :-* :* >:) >:-) <3
for
emot
in
[
'
:-*
'
,
'
:*
'
,
'
>:)
'
,
'
>:-)
'
,
'
<3
'
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment