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):
|
||||
# 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')
|
||||
# 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('')
|
||||
|
@ -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'
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|