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
ad087f10
Commit
ad087f10
authored
19 years ago
by
nicfit
Browse files
Options
Downloads
Patches
Plain Diff
Use contacts.py from trunk and bug fix
parent
1e49d5be
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
src/chat_control.py
+1
-1
1 addition, 1 deletion
src/chat_control.py
src/common/contacts.py
+10
-14
10 additions, 14 deletions
src/common/contacts.py
with
11 additions
and
15 deletions
src/chat_control.py
+
1
−
1
View file @
ad087f10
...
...
@@ -700,7 +700,7 @@ class ChatControl(ChatControlBase):
avatar_w
=
avatar_pixbuf
.
get_width
()
avatar_h
=
avatar_pixbuf
.
get_height
()
scaled_buf
=
self
.
xml
s
[
jid
]
.
get_widget
(
'
avatar_image
'
).
get_pixbuf
()
scaled_buf
=
self
.
xml
.
get_widget
(
'
avatar_image
'
).
get_pixbuf
()
scaled_buf_w
=
scaled_buf
.
get_width
()
scaled_buf_h
=
scaled_buf
.
get_height
()
...
...
This diff is collapsed.
Click to expand it.
src/common/contacts.py
+
10
−
14
View file @
ad087f10
...
...
@@ -24,23 +24,16 @@
import
common.gajim
class
ContactBase
:
def
__init__
(
self
,
jid
=
''
,
name
=
''
,
show
=
''
,
status
=
''
):
self
.
jid
=
jid
self
.
name
=
name
self
.
show
=
show
self
.
status
=
status
def
get_full_jid
(
self
):
pass
# Derived types MUST implement this method
class
Contact
(
ContactBase
):
class
Contact
:
'''
Information concerning each contact
'''
def
__init__
(
self
,
jid
=
''
,
name
=
''
,
groups
=
[],
show
=
''
,
status
=
''
,
sub
=
''
,
ask
=
''
,
resource
=
''
,
priority
=
5
,
keyID
=
''
,
our_chatstate
=
None
,
chatstate
=
None
):
ContactBase
.
__init__
(
self
,
jid
=
jid
,
name
=
name
,
status
=
status
,
show
=
show
)
self
.
jid
=
jid
self
.
name
=
name
self
.
groups
=
groups
self
.
show
=
show
self
.
status
=
status
self
.
sub
=
sub
self
.
ask
=
ask
self
.
resource
=
resource
...
...
@@ -63,14 +56,17 @@ class Contact(ContactBase):
return
self
.
jid
+
'
/
'
+
self
.
resource
return
self
.
jid
class
GC_Contact
(
ContactBase
)
:
class
GC_Contact
:
'''
Information concerning each groupchat contact
'''
def
__init__
(
self
,
room_jid
=
''
,
name
=
''
,
show
=
''
,
status
=
''
,
role
=
''
,
affiliation
=
''
,
jid
=
''
,
resource
=
''
):
ContactBase
.
__init__
(
self
,
jid
=
jid
,
name
=
name
,
status
=
status
,
show
=
show
)
self
.
room_jid
=
room_jid
self
.
name
=
name
self
.
show
=
show
self
.
status
=
status
self
.
role
=
role
self
.
affiliation
=
affiliation
self
.
jid
=
jid
self
.
resource
=
resource
def
get_full_jid
(
self
):
...
...
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