Skip to content
Snippets Groups Projects
Commit 24e9188a authored by nkour's avatar nkour
Browse files

now also catch weather transport and show correct icons

parent 12b190e9
No related branches found
No related tags found
No related merge requests found
Showing with 10 additions and 8 deletions
data/iconsets/transports/weather/16x16/away.png

243 B

data/iconsets/transports/weather/16x16/chat.png

323 B

data/iconsets/transports/weather/16x16/dnd.png

213 B

data/iconsets/transports/weather/16x16/error.png

412 B

data/iconsets/transports/weather/16x16/invisible.png

262 B

data/iconsets/transports/weather/16x16/message.gif

2.08 KiB

data/iconsets/transports/weather/16x16/not_in_the_roster.png

301 B

data/iconsets/transports/weather/16x16/offline.png

417 B

data/iconsets/transports/weather/16x16/online.png

285 B

data/iconsets/transports/weather/16x16/xa.png

209 B

......@@ -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'
......
......@@ -2056,7 +2056,7 @@ def __init__(self, plugin):
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 @@ def __init__(self, plugin):
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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment