Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gajim-plugins
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
Evert Mouw
gajim-plugins
Commits
e0df92a4
Commit
e0df92a4
authored
11 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
ClientsIconsPlugin. Fix icon if contact in several groups
parent
854734f0
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
clients_icons/clients_icons.py
+12
-9
12 additions, 9 deletions
clients_icons/clients_icons.py
clients_icons/manifest.ini
+1
-1
1 addition, 1 deletion
clients_icons/manifest.ini
with
13 additions
and
10 deletions
clients_icons/clients_icons.py
+
12
−
9
View file @
e0df92a4
...
...
@@ -366,12 +366,13 @@ class ClientsIconsPlugin(GajimPlugin):
roster
.
model
)
if
not
child_iters
:
return
if
roster
.
model
[
child_iters
[
0
]][
self
.
renderer_num
]
is
None
:
caps
=
contact
.
client_caps
.
_node
if
not
caps
:
caps
=
self
.
check_jid
(
jid
)
self
.
set_icon
(
roster
.
model
,
child_iters
[
0
],
self
.
renderer_num
,
caps
)
for
iter_
in
child_iters
:
if
roster
.
model
[
iter_
][
self
.
renderer_num
]
is
None
:
caps
=
contact
.
client_caps
.
_node
if
not
caps
:
caps
=
self
.
check_jid
(
jid
)
self
.
set_icon
(
roster
.
model
,
iter_
,
self
.
renderer_num
,
caps
)
@log_calls
(
'
ClientsIconsPlugin
'
)
def
connect_with_groupchat_control
(
self
,
chat_control
):
...
...
@@ -505,8 +506,9 @@ class ClientsIconsPlugin(GajimPlugin):
# zeroconf
return
iter_
=
roster
.
_get_contact_iter
(
iq_obj
.
jid
,
iq_obj
.
conn
.
name
,
contact
,
roster
.
model
)[
0
]
iters
=
roster
.
_get_contact_iter
(
iq_obj
.
jid
,
iq_obj
.
conn
.
name
,
contact
,
roster
.
model
)
iter_
=
iters
[
0
]
if
contact
.
show
==
'
error
'
:
self
.
set_icon
(
roster
.
model
,
iter_
,
self
.
renderer_num
,
None
)
...
...
@@ -534,7 +536,8 @@ class ClientsIconsPlugin(GajimPlugin):
if
caps_from_jid
:
caps
=
caps_from_jid
self
.
set_icon
(
roster
.
model
,
iter_
,
self
.
renderer_num
,
caps
)
for
iter_
in
iters
:
self
.
set_icon
(
roster
.
model
,
iter_
,
self
.
renderer_num
,
caps
)
def
gc_presence_received
(
self
,
iq_obj
):
if
not
self
.
config
[
'
show_in_groupchats
'
]:
...
...
This diff is collapsed.
Click to expand it.
clients_icons/manifest.ini
+
1
−
1
View file @
e0df92a4
[info]
name:
Clients
icons
short_name:
clients_icons
version:
4.
1
version:
4.
2
description:
Shows
the
client
icons
in
the
roster
and
in
groupchats.
For
icons
in
tooltip
support,
you
need
to
install
Gajim
r14117
or
above.
...
...
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