ClientsIconsPlugin. Add Poezio icon.
This commit is contained in:
@@ -145,6 +145,7 @@ clients = {
|
|||||||
'http://opensource.palm.com/packages.html': ['palm.png', 'Palm'],
|
'http://opensource.palm.com/packages.html': ['palm.png', 'Palm'],
|
||||||
'http://spectrum.im/': ['spectrum.png', 'Spectrum'],
|
'http://spectrum.im/': ['spectrum.png', 'Spectrum'],
|
||||||
'http://tigase.org/messenger': ['tigase.png', 'Tigase'],
|
'http://tigase.org/messenger': ['tigase.png', 'Tigase'],
|
||||||
|
'httр://sleekxmpp.com/ver/1.1.11': ['poezio.png', 'Poezio'],
|
||||||
}
|
}
|
||||||
libpurple_clients ={
|
libpurple_clients ={
|
||||||
'adium': 'http://www.adium.im/',
|
'adium': 'http://www.adium.im/',
|
||||||
@@ -288,6 +289,9 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
if client in contact.resource.lower():
|
if client in contact.resource.lower():
|
||||||
caps = libpurple_clients[client]
|
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)
|
caps_from_jid = self.check_jid(contact.jid)
|
||||||
if caps_from_jid:
|
if caps_from_jid:
|
||||||
caps = caps_from_jid
|
caps = caps_from_jid
|
||||||
@@ -506,6 +510,8 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
for client in libpurple_clients:
|
for client in libpurple_clients:
|
||||||
if client in contact.resource.lower():
|
if client in contact.resource.lower():
|
||||||
caps = libpurple_clients[client]
|
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)
|
caps_from_jid = self.check_jid(iq_obj.jid)
|
||||||
if caps_from_jid:
|
if caps_from_jid:
|
||||||
@@ -527,6 +533,8 @@ class ClientsIconsPlugin(GajimPlugin):
|
|||||||
caps = tag[0].getAttr('node')
|
caps = tag[0].getAttr('node')
|
||||||
if 'pidgin.im' in caps:
|
if 'pidgin.im' in caps:
|
||||||
caps = 'libpurple'
|
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)
|
iter_ = iq_obj.gc_control.get_contact_iter(iq_obj.nick)
|
||||||
model = iq_obj.gc_control.model
|
model = iq_obj.gc_control.model
|
||||||
if model[iter_][self.muc_renderer_num] is not None:
|
if model[iter_][self.muc_renderer_num] is not None:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Clients icons
|
name: Clients icons
|
||||||
short_name: clients_icons
|
short_name: clients_icons
|
||||||
version: 4.2
|
version: 4.3
|
||||||
description: Shows the client icons in the roster
|
description: Shows the client icons in the roster
|
||||||
and in groupchats.
|
and in groupchats.
|
||||||
For icons in tooltip support, you need to install Gajim r14117 or above.
|
For icons in tooltip support, you need to install Gajim r14117 or above.
|
||||||
|
|||||||
Reference in New Issue
Block a user