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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Erik Huelsmann
gajim
Commits
27c5cd35
Commit
27c5cd35
authored
20 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
some bugfix when modifying account
parent
5e47ab69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/core.py
+4
-5
4 additions, 5 deletions
core/core.py
plugins/gtkgui/config.py
+16
-18
16 additions, 18 deletions
plugins/gtkgui/config.py
with
20 additions
and
23 deletions
core/core.py
+
4
−
5
View file @
27c5cd35
...
...
@@ -323,12 +323,11 @@ class GajimCore:
con
.
disconnect
()
self
.
hub
.
sendPlugin
(
'
STATUS
'
,
ev
[
1
],
'
offline
'
)
elif
ev
[
2
][
0
]
!=
'
offline
'
and
self
.
connected
[
ev
[
1
]]
==
1
:
p
=
common
.
jabber
.
Presence
()
p
.
setShow
(
ev
[
2
][
0
])
p
.
setStatus
(
ev
[
2
][
1
])
type
=
'
available
'
if
ev
[
2
][
0
]
==
'
invisible
'
:
p
.
setType
(
'
invisible
'
)
con
.
send
(
p
)
type
=
'
invisible
'
prio
=
str
(
self
.
cfgParser
.
tab
[
ev
[
1
]][
'
priority
'
])
con
.
sendPresence
(
type
,
prio
,
ev
[
2
][
0
],
ev
[
2
][
1
])
self
.
hub
.
sendPlugin
(
'
STATUS
'
,
ev
[
1
],
ev
[
2
][
0
])
#('MSG', account, (jid, msg))
elif
ev
[
0
]
==
'
MSG
'
:
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/config.py
+
16
−
18
View file @
27c5cd35
...
...
@@ -361,9 +361,8 @@ class accountPreference_Window:
if
infos
.
has_key
(
'
proxyhost
'
):
self
.
xml
.
get_widget
(
"
entry_proxyhost
"
).
set_text
(
infos
[
'
proxyhost
'
])
if
infos
.
has_key
(
'
proxyport
'
):
# self.xml.get_widget("entry_proxyport").set_text('%i'%\
self
.
xml
.
get_widget
(
"
entry_proxyport
"
).
set_text
(
\
infos
[
'
proxyport
'
])
self
.
xml
.
get_widget
(
"
entry_proxyport
"
).
set_text
(
str
(
\
infos
[
'
proxyport
'
]))
def
on_save_clicked
(
self
,
widget
):
"""
When save button is clicked : Save informations in config file
"""
...
...
@@ -427,19 +426,19 @@ class accountPreference_Window:
del
self
.
plugin
.
roster
.
contacts
[
self
.
account
]
del
self
.
plugin
.
accounts
[
self
.
account
]
self
.
plugin
.
send
(
'
ACC_CHG
'
,
self
.
account
,
name
)
self
.
plugin
.
accounts
[
name
]
=
{
'
name
'
:
login
,
'
hostname
'
:
hostname
,
\
'
password
'
:
entryPass
.
get_text
(),
'
ressource
'
:
\
entryRessource
.
get_text
(),
'
priority
'
:
prio
,
'
use_proxy
'
:
\
useProxy
,
'
proxyhost
'
:
entryProxyhost
.
get_text
(),
'
proxyport
'
:
\
proxyPort
}
self
.
plugin
.
send
(
'
CONFIG
'
,
None
,
(
'
accounts
'
,
self
.
plugin
.
accounts
))
#refresh accounts window
if
self
.
plugin
.
windows
.
has_key
(
'
accounts
'
):
self
.
plugin
.
windows
[
'
accounts
'
].
init_accounts
()
#refresh roster
self
.
plugin
.
roster
.
draw_roster
()
widget
.
get_toplevel
().
destroy
()
return
self
.
plugin
.
accounts
[
name
]
=
{
'
name
'
:
login
,
'
hostname
'
:
hostname
,
\
'
password
'
:
entryPass
.
get_text
(),
'
ressource
'
:
\
entryRessource
.
get_text
(),
'
priority
'
:
prio
,
'
use_proxy
'
:
\
useProxy
,
'
proxyhost
'
:
entryProxyhost
.
get_text
(),
'
proxyport
'
:
\
proxyPort
}
self
.
plugin
.
send
(
'
CONFIG
'
,
None
,
(
'
accounts
'
,
self
.
plugin
.
accounts
))
#refresh accounts window
if
self
.
plugin
.
windows
.
has_key
(
'
accounts
'
):
self
.
plugin
.
windows
[
'
accounts
'
].
init_accounts
()
#refresh roster
self
.
plugin
.
roster
.
draw_roster
()
widget
.
get_toplevel
().
destroy
()
return
#if it's a new account
else
:
if
name
in
self
.
plugin
.
accounts
.
keys
():
...
...
@@ -449,8 +448,7 @@ class accountPreference_Window:
if
check
.
get_active
():
self
.
plugin
.
send
(
'
NEW_ACC
'
,
None
,
(
hostname
,
login
,
\
entryPass
.
get_text
(),
name
,
entryRessource
.
get_text
(),
prio
,
\
checkProxy
.
get_active
(),
entryProxyhost
.
get_text
(),
\
entryProxyport
.
get_text
()))
checkProxy
.
get_active
(),
entryProxyhost
.
get_text
(),
proxyPort
))
check
.
set_active
(
FALSE
)
return
self
.
plugin
.
accounts
[
name
]
=
{
'
name
'
:
login
,
'
hostname
'
:
hostname
,
\
...
...
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