Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim-plugins
Commits
6cfe3ef8
Commit
6cfe3ef8
authored
Aug 30, 2011
by
Dicson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clients_icons. split long line.translateble description
parent
f1a16bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
clients_icons/clients_icons.py
clients_icons/clients_icons.py
+9
-5
No files found.
clients_icons/clients_icons.py
View file @
6cfe3ef8
...
...
@@ -85,8 +85,8 @@ clients = {
'http://www.adiumx.com'
:
'adium.png'
,
'http://juick.com/caps'
:
'juick.png'
,
'vk.com'
:
'vkontakte.png'
,
'facebook.com'
:
'facebook.png'
,
'http://mail.google.com/xmpp/client/caps'
:
'google.com.png'
,
'facebook.com'
:
'facebook.png'
,
'http://mail.google.com/xmpp/client/caps'
:
'google.com.png'
,
'http://snapi-bot.googlecode.com/caps'
:
'bot.png'
,
'http://www.barobin.com/caps'
:
'bayanicq.png'
,
'http://chat.ovi.com/caps'
:
'ovi-chat.png'
,
...
...
@@ -109,7 +109,8 @@ clients = {
'http://witcher-team.ucoz.ru/'
:
'bot.png'
,
'http://home.gna.org/'
:
'omnipresence.png'
,
'http://ayttm.souceforge.net/caps'
:
'ayttm.png'
,
'http://www.process-one.net/en/solutions/oneteam_iphone/'
:
'oneteamiphone.png'
,
'http://www.process-one.net/en/solutions/oneteam_iphone/'
:
\
'oneteamiphone.png'
,
'http://qq-im.com/caps'
:
'qq.png'
,
'http://qq.com/caps'
:
'qq.png'
,
'http://www.lonelycatgames.com/slick/caps'
:
'slick.png'
,
...
...
@@ -129,6 +130,7 @@ clients = {
class
ClientsIconsPlugin
(
GajimPlugin
):
description
=
_
(
'Shows the client icons in the roster'
)
@
log_calls
(
'ClientsIconsPlugin'
)
def
init
(
self
):
...
...
@@ -167,7 +169,8 @@ class ClientsIconsPlugin(GajimPlugin):
caps
=
contact
.
client_caps
.
_node
if
not
caps
and
jid
==
'juick@juick.com'
:
caps
=
'http://juick.com/caps'
self
.
set_icon
(
roster
.
model
,
child_iters
[
0
],
self
.
renderer_num
,
caps
)
self
.
set_icon
(
roster
.
model
,
child_iters
[
0
],
self
.
renderer_num
,
caps
)
@
log_calls
(
'ClientsIconsPlugin'
)
def
connect_with_groupchat_control
(
self
,
chat_control
):
...
...
@@ -210,7 +213,8 @@ class ClientsIconsPlugin(GajimPlugin):
if
not
self
.
config
[
'show_in_groupchats'
]:
continue
caps
=
gc_contact
.
client_caps
.
_node
self
.
set_icon
(
chat_control
.
model
,
iter_
,
self
.
muc_renderer_num
,
caps
)
self
.
set_icon
(
chat_control
.
model
,
iter_
,
self
.
muc_renderer_num
,
caps
)
chat_control
.
draw_all_roles
()
# Recalculate column width for ellipsizin
chat_control
.
list_treeview
.
columns_autosize
()
...
...
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