now also catch weather transport and show correct icons
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 412 B |
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 301 B |
After Width: | Height: | Size: 417 B |
After Width: | Height: | Size: 285 B |
After Width: | Height: | Size: 209 B |
|
@ -79,13 +79,13 @@ def get_nick_from_jid(jid):
|
||||||
|
|
||||||
def get_nick_from_fjid(jid):
|
def get_nick_from_fjid(jid):
|
||||||
# fake jid is the jid for a contact in a room
|
# fake jid is the jid for a contact in a room
|
||||||
# gaim@conference.jabber.org/nick/nick-continued
|
# gaim@conference.jabber.no/nick/nick-continued
|
||||||
return jid.split('/', 1)[1]
|
return jid.split('/', 1)[1]
|
||||||
|
|
||||||
def get_room_and_nick_from_fjid(jid):
|
def get_room_and_nick_from_fjid(jid):
|
||||||
# fake jid is the jid for a contact in a room
|
# fake jid is the jid for a contact in a room
|
||||||
# gaim@conference.jabber.org/nick/nick-continued
|
# gaim@conference.jabber.no/nick/nick-continued
|
||||||
# return ('gaim@conference.jabber.org', 'nick/nick-continued')
|
# return ('gaim@conference.jabber.no', 'nick/nick-continued')
|
||||||
l = jid.split('/', 1)
|
l = jid.split('/', 1)
|
||||||
if len(l) == 1: #No nick
|
if len(l) == 1: #No nick
|
||||||
l.append('')
|
l.append('')
|
||||||
|
@ -173,6 +173,8 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
|
||||||
return 'sms'
|
return 'sms'
|
||||||
elif host.startswith('tlen'):
|
elif host.startswith('tlen'):
|
||||||
return 'tlen'
|
return 'tlen'
|
||||||
|
elif host.startswith('weather'):
|
||||||
|
return 'weather'
|
||||||
elif host.startswith('yahoo'):
|
elif host.startswith('yahoo'):
|
||||||
return 'yahoo'
|
return 'yahoo'
|
||||||
|
|
||||||
|
|
|
@ -2056,7 +2056,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
self.tree.set_model(model)
|
self.tree.set_model(model)
|
||||||
self.make_jabber_state_images()
|
self.make_jabber_state_images()
|
||||||
self.transports_state_images = { 'aim': {}, 'gadugadu': {}, 'irc': {},
|
self.transports_state_images = { 'aim': {}, 'gadugadu': {}, 'irc': {},
|
||||||
'icq': {}, 'msn': {}, 'sms': {}, 'yahoo': {} }
|
'icq': {}, 'msn': {}, 'sms': {}, 'weather': {}, 'yahoo': {} }
|
||||||
|
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets/transports')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets/transports')
|
||||||
folders = os.listdir(path)
|
folders = os.listdir(path)
|
||||||
|
|