Commit 6cfe3ef8 authored by Dicson's avatar Dicson

clients_icons. split long line.translateble description

parent f1a16bc7
...@@ -85,8 +85,8 @@ clients = { ...@@ -85,8 +85,8 @@ clients = {
'http://www.adiumx.com': 'adium.png', 'http://www.adiumx.com': 'adium.png',
'http://juick.com/caps': 'juick.png', 'http://juick.com/caps': 'juick.png',
'vk.com': 'vkontakte.png', 'vk.com': 'vkontakte.png',
'facebook.com':'facebook.png', 'facebook.com': 'facebook.png',
'http://mail.google.com/xmpp/client/caps':'google.com.png', 'http://mail.google.com/xmpp/client/caps': 'google.com.png',
'http://snapi-bot.googlecode.com/caps': 'bot.png', 'http://snapi-bot.googlecode.com/caps': 'bot.png',
'http://www.barobin.com/caps': 'bayanicq.png', 'http://www.barobin.com/caps': 'bayanicq.png',
'http://chat.ovi.com/caps': 'ovi-chat.png', 'http://chat.ovi.com/caps': 'ovi-chat.png',
...@@ -109,7 +109,8 @@ clients = { ...@@ -109,7 +109,8 @@ clients = {
'http://witcher-team.ucoz.ru/': 'bot.png', 'http://witcher-team.ucoz.ru/': 'bot.png',
'http://home.gna.org/': 'omnipresence.png', 'http://home.gna.org/': 'omnipresence.png',
'http://ayttm.souceforge.net/caps': 'ayttm.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-im.com/caps': 'qq.png',
'http://qq.com/caps': 'qq.png', 'http://qq.com/caps': 'qq.png',
'http://www.lonelycatgames.com/slick/caps': 'slick.png', 'http://www.lonelycatgames.com/slick/caps': 'slick.png',
...@@ -129,6 +130,7 @@ clients = { ...@@ -129,6 +130,7 @@ clients = {
class ClientsIconsPlugin(GajimPlugin): class ClientsIconsPlugin(GajimPlugin):
description = _('Shows the client icons in the roster')
@log_calls('ClientsIconsPlugin') @log_calls('ClientsIconsPlugin')
def init(self): def init(self):
...@@ -167,7 +169,8 @@ class ClientsIconsPlugin(GajimPlugin): ...@@ -167,7 +169,8 @@ class ClientsIconsPlugin(GajimPlugin):
caps = contact.client_caps._node caps = contact.client_caps._node
if not caps and jid == 'juick@juick.com': if not caps and jid == 'juick@juick.com':
caps = 'http://juick.com/caps' 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') @log_calls('ClientsIconsPlugin')
def connect_with_groupchat_control(self, chat_control): def connect_with_groupchat_control(self, chat_control):
...@@ -210,7 +213,8 @@ class ClientsIconsPlugin(GajimPlugin): ...@@ -210,7 +213,8 @@ class ClientsIconsPlugin(GajimPlugin):
if not self.config['show_in_groupchats']: if not self.config['show_in_groupchats']:
continue continue
caps = gc_contact.client_caps._node 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() chat_control.draw_all_roles()
# Recalculate column width for ellipsizin # Recalculate column width for ellipsizin
chat_control.list_treeview.columns_autosize() chat_control.list_treeview.columns_autosize()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment