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
eta
gajim
Commits
4ec2eea6
Commit
4ec2eea6
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
update_user => update_contact
parent
6615a51a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/dialogs.py
+4
-4
4 additions, 4 deletions
src/dialogs.py
src/gajim.py
+1
-1
1 addition, 1 deletion
src/gajim.py
src/roster_window.py
+5
-5
5 additions, 5 deletions
src/roster_window.py
src/vcard.py
+1
-1
1 addition, 1 deletion
src/vcard.py
with
11 additions
and
11 deletions
src/dialogs.py
+
4
−
4
View file @
4ec2eea6
...
...
@@ -59,10 +59,10 @@ class EditGroupsDialog:
self
.
dialog
.
run
()
self
.
dialog
.
destroy
()
if
self
.
changes_made
:
gajim
.
connections
[
self
.
account
].
update_
user
(
self
.
user
.
jid
,
gajim
.
connections
[
self
.
account
].
update_
contact
(
self
.
user
.
jid
,
self
.
user
.
name
,
self
.
user
.
groups
)
def
update_
user
(
self
):
def
update_
contact
(
self
):
self
.
plugin
.
roster
.
remove_user
(
self
.
user
,
self
.
account
)
self
.
plugin
.
roster
.
add_contact_to_roster
(
self
.
user
.
jid
,
self
.
account
)
...
...
@@ -80,7 +80,7 @@ class EditGroupsDialog:
self
.
changes_made
=
True
model
.
append
((
group
,
True
))
self
.
user
.
groups
.
append
(
group
)
self
.
update_
user
()
self
.
update_
contact
()
def
group_toggled_cb
(
self
,
cell
,
path
):
self
.
changes_made
=
True
...
...
@@ -95,7 +95,7 @@ class EditGroupsDialog:
self
.
user
.
groups
.
append
(
model
[
path
][
0
])
else
:
self
.
user
.
groups
.
remove
(
model
[
path
][
0
])
self
.
update_
user
()
self
.
update_
contact
()
def
init_list
(
self
):
store
=
gtk
.
ListStore
(
str
,
bool
)
...
...
This diff is collapsed.
Click to expand it.
src/gajim.py
+
1
−
1
View file @
4ec2eea6
...
...
@@ -465,7 +465,7 @@ class Interface:
if
len
(
u
.
groups
)
==
0
:
u
.
groups
=
[
_
(
'
General
'
)]
self
.
roster
.
add_contact_to_roster
(
u
.
jid
,
account
)
gajim
.
connections
[
account
].
update_
user
(
u
.
jid
,
u
.
name
,
u
.
groups
)
gajim
.
connections
[
account
].
update_
contact
(
u
.
jid
,
u
.
name
,
u
.
groups
)
else
:
keyID
=
''
attached_keys
=
gajim
.
config
.
get_per
(
'
accounts
'
,
account
,
...
...
This diff is collapsed.
Click to expand it.
src/roster_window.py
+
5
−
5
View file @
4ec2eea6
...
...
@@ -1601,8 +1601,8 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
pass
def
on_cell_edited
(
self
,
cell
,
row
,
new_text
):
'''
When an iter is edite
r
:
if text has changed, rename the
user
'''
'''
When an iter is edite
d
:
if text has changed, rename the
contact
'''
model
=
self
.
tree
.
get_model
()
iter
=
model
.
get_iter_from_string
(
row
)
path
=
model
.
get_path
(
iter
)
...
...
@@ -1614,7 +1614,7 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
if
old_text
!=
new_text
:
for
u
in
self
.
contacts
[
account
][
jid
]:
u
.
name
=
new_text
gajim
.
connections
[
account
].
update_
user
(
jid
,
new_text
,
u
.
groups
)
gajim
.
connections
[
account
].
update_
contact
(
jid
,
new_text
,
u
.
groups
)
self
.
draw_contact
(
jid
,
account
)
elif
type
==
'
group
'
:
old_name
=
model
.
get_value
(
iter
,
1
)
...
...
@@ -1627,7 +1627,7 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
user
.
groups
.
remove
(
old_name
)
user
.
groups
.
append
(
new_text
)
self
.
add_contact_to_roster
(
user
.
jid
,
account
)
gajim
.
connections
[
account
].
update_
user
(
user
.
jid
,
user
.
name
,
gajim
.
connections
[
account
].
update_
contact
(
user
.
jid
,
user
.
name
,
user
.
groups
)
model
.
set_value
(
iter
,
5
,
False
)
...
...
@@ -1912,7 +1912,7 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
if
not
grp_dest
in
u
.
groups
:
u
.
groups
.
append
(
grp_dest
)
self
.
add_contact_to_roster
(
data
,
account
)
gajim
.
connections
[
account
].
update_
user
(
u
.
jid
,
u
.
name
,
u
.
groups
)
gajim
.
connections
[
account
].
update_
contact
(
u
.
jid
,
u
.
name
,
u
.
groups
)
if
context
.
action
==
gtk
.
gdk
.
ACTION_MOVE
:
context
.
finish
(
True
,
True
,
etime
)
return
...
...
This diff is collapsed.
Click to expand it.
src/vcard.py
+
1
−
1
View file @
4ec2eea6
...
...
@@ -86,7 +86,7 @@ class VcardWindow:
self
.
user
.
name
=
new_name
for
i
in
self
.
plugin
.
roster
.
get_contact_iter
(
self
.
user
.
jid
,
self
.
account
):
self
.
plugin
.
roster
.
tree
.
get_model
().
set_value
(
i
,
1
,
new_name
)
gajim
.
connections
[
self
.
account
].
update_
user
(
self
.
user
.
jid
,
gajim
.
connections
[
self
.
account
].
update_
contact
(
self
.
user
.
jid
,
self
.
user
.
name
,
self
.
user
.
groups
)
#log history ?
oldlog
=
True
...
...
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