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
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
gajim
gajim-plugins
Commits
acc940a4
Commit
acc940a4
authored
13 years ago
by
Dicson
Browse files
Options
Downloads
Patches
Plain Diff
clients_icons.prevent traceback
parent
767fb7e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clients_icons/clients_icons.py
+7
-1
7 additions, 1 deletion
clients_icons/clients_icons.py
clients_icons/manifest.ini
+1
-1
1 addition, 1 deletion
clients_icons/manifest.ini
with
8 additions
and
2 deletions
clients_icons/clients_icons.py
+
7
−
1
View file @
acc940a4
...
@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin):
...
@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin):
if
self
.
config
[
'
show_unknown_icon
'
]:
if
self
.
config
[
'
show_unknown_icon
'
]:
model
[
iter_
][
pos
]
=
self
.
default_pixbuf
model
[
iter_
][
pos
]
=
self
.
default_pixbuf
return
return
client_icon
=
clients
.
get
(
caps
.
split
(
'
#
'
)[
0
].
split
()[
0
],
None
)
caps_
=
caps
.
split
(
'
#
'
)[
0
].
split
()
if
caps_
:
client_icon
=
clients
.
get
(
caps_
[
0
].
split
()[
0
],
None
)
else
:
client_icon
=
None
if
not
client_icon
:
if
not
client_icon
:
if
self
.
config
[
'
show_unknown_icon
'
]:
if
self
.
config
[
'
show_unknown_icon
'
]:
model
[
iter_
][
pos
]
=
self
.
default_pixbuf
model
[
iter_
][
pos
]
=
self
.
default_pixbuf
...
...
This diff is collapsed.
Click to expand it.
clients_icons/manifest.ini
+
1
−
1
View file @
acc940a4
[info]
[info]
name:
Clients
icons
name:
Clients
icons
short_name:
clients_icons
short_name:
clients_icons
version:
1.
3
version:
1.
4
description:
Shows
the
client
icons
in
the
roster
description:
Shows
the
client
icons
in
the
roster
and
in
groupchats.
and
in
groupchats.
Depends:
Gajim
>
r12506
Depends:
Gajim
>
r12506
...
...
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