Commit 8e325466 authored by Yann Leboulanger's avatar Yann Leboulanger

[Spike411] Facebook iconset for Gajim. A great thanks to Jakub Szypulka for is...

[Spike411] Facebook iconset for Gajim. A great thanks to Jakub Szypulka for is iconset: http://cubestuff.wordpress.com/2008/05/21/facebook-goes-tango/
parent 60885346
......@@ -5,3 +5,4 @@ Guillaume Morin
Josef Vybíral
Membris Khan
Rederick Asher
Jakub Szypulka
......@@ -345,12 +345,14 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
host = host_splitted[0]
if host in ('aim', 'irc', 'icq', 'msn', 'sms', 'tlen', 'weather', 'yahoo',
'mrim'):
'mrim', 'facebook'):
return host
elif host == 'gg':
return 'gadu-gadu'
elif host == 'jit':
return 'icq'
elif host == 'facebook':
return 'facebook'
else:
return None
......@@ -385,7 +387,7 @@ def get_hostname_from_account(account_name, use_srv = False):
def get_notification_image_prefix(jid):
'''returns the prefix for the notification images'''
transport_name = get_transport_name_from_jid(jid)
if transport_name in ('aim', 'icq', 'msn', 'yahoo'):
if transport_name in ('aim', 'icq', 'msn', 'yahoo', 'facebook'):
prefix = transport_name
else:
prefix = 'jabber'
......
......@@ -109,6 +109,8 @@ def _gen_agent_type_info():
('_jid', 'yahoo'): (False, 'yahoo.png'),
('gateway', 'mrim'): (False, 'mrim.png'),
('_jid', 'mrim'): (False, 'mrim.png'),
('gateway', 'facebook'): (False, 'facebook.png'),
('_jid', 'facebook'): (False, 'facebook.png'),
}
# Category type to "human-readable" description string, and sort priority
......
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