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,16 +79,16 @@ def get_nick_from_jid(jid):
def get_nick_from_fjid(jid):
# 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]
def get_room_and_nick_from_fjid(jid):
# fake jid is the jid for a contact in a room
# gaim@conference.jabber.org/nick/nick-continued
# return ('gaim@conference.jabber.org', 'nick/nick-continued')
l = jid.split('/', 1)
if len(l) == 1: #No nick
l.append('')
# gaim@conference.jabber.no/nick/nick-continued
# return ('gaim@conference.jabber.no', 'nick/nick-continued')
l = jid.split('/', 1)
if len(l) == 1: #No nick
l.append('')
return l
def get_contact_instances_from_jid(account, jid):
@ -173,6 +173,8 @@ def get_transport_name_from_jid(jid, use_config_setting = True):
return 'sms'
elif host.startswith('tlen'):
return 'tlen'
elif host.startswith('weather'):
return 'weather'
elif host.startswith('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.make_jabber_state_images()
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')
folders = os.listdir(path)
@ -2065,7 +2065,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
continue
folder = os.path.join(path, transport)
self.transports_state_images[transport] = self.load_iconset(
folder + '/16x16/')
folder + '/16x16/')
liststore = gtk.ListStore(str, gtk.Image, str)
self.status_combobox = self.xml.get_widget('status_combobox')