now also catch weather transport and show correct icons

This commit is contained in:
Nikos Kouremenos 2005-08-29 22:24:13 +00:00
parent 12b190e98c
commit 24e9188a42
12 changed files with 10 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

View File

@ -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'

View File

@ -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)