Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
51464d0c
Commit
51464d0c
authored
May 27, 2013
by
Dicson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ClientsIconsPlugin. Add Poezio icon.
parent
ee1515f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
clients_icons/clients_icons.py
clients_icons/clients_icons.py
+8
-0
clients_icons/manifest.ini
clients_icons/manifest.ini
+1
-1
No files found.
clients_icons/clients_icons.py
View file @
51464d0c
...
...
@@ -145,6 +145,7 @@ clients = {
'http://opensource.palm.com/packages.html'
:
[
'palm.png'
,
'Palm'
],
'http://spectrum.im/'
:
[
'spectrum.png'
,
'Spectrum'
],
'http://tigase.org/messenger'
:
[
'tigase.png'
,
'Tigase'
],
'httр://sleekxmpp.com/ver/1.1.11'
:
[
'poezio.png'
,
'Poezio'
],
}
libpurple_clients
=
{
'adium'
:
'http://www.adium.im/'
,
...
...
@@ -288,6 +289,9 @@ class ClientsIconsPlugin(GajimPlugin):
if
client
in
contact
.
resource
.
lower
():
caps
=
libpurple_clients
[
client
]
if
'sleekxmpp.com'
in
caps
:
caps
=
'httр://sleekxmpp.com/ver/1.1.11'
caps_from_jid
=
self
.
check_jid
(
contact
.
jid
)
if
caps_from_jid
:
caps
=
caps_from_jid
...
...
@@ -506,6 +510,8 @@ class ClientsIconsPlugin(GajimPlugin):
for
client
in
libpurple_clients
:
if
client
in
contact
.
resource
.
lower
():
caps
=
libpurple_clients
[
client
]
if
'sleekxmpp.com'
in
caps
:
caps
=
'httр://sleekxmpp.com/ver/1.1.11'
caps_from_jid
=
self
.
check_jid
(
iq_obj
.
jid
)
if
caps_from_jid
:
...
...
@@ -527,6 +533,8 @@ class ClientsIconsPlugin(GajimPlugin):
caps
=
tag
[
0
].
getAttr
(
'node'
)
if
'pidgin.im'
in
caps
:
caps
=
'libpurple'
if
'sleekxmpp.com'
in
caps
:
caps
=
'httр://sleekxmpp.com/ver/1.1.11'
iter_
=
iq_obj
.
gc_control
.
get_contact_iter
(
iq_obj
.
nick
)
model
=
iq_obj
.
gc_control
.
model
if
model
[
iter_
][
self
.
muc_renderer_num
]
is
not
None
:
...
...
clients_icons/manifest.ini
View file @
51464d0c
[info]
name:
Clients
icons
short_name:
clients_icons
version:
4.
2
version:
4.
3
description:
Shows
the
client
icons
in
the
roster
and
in
groupchats.
For
icons
in
tooltip
support,
you
need
to
install
Gajim
r14117
or
above.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment