diff --git a/data/iconsets/transports/weather/16x16/away.png b/data/iconsets/transports/weather/16x16/away.png new file mode 100644 index 0000000000000000000000000000000000000000..73e8e2b73818459e993f3d4091590bb697d130a2 Binary files /dev/null and b/data/iconsets/transports/weather/16x16/away.png differ diff --git a/data/iconsets/transports/weather/16x16/chat.png b/data/iconsets/transports/weather/16x16/chat.png new file mode 100644 index 0000000000000000000000000000000000000000..655537e02b6b38455a3420a16c6d1618dc53b74a Binary files /dev/null and b/data/iconsets/transports/weather/16x16/chat.png differ diff --git a/data/iconsets/transports/weather/16x16/dnd.png b/data/iconsets/transports/weather/16x16/dnd.png new file mode 100644 index 0000000000000000000000000000000000000000..12f0b0282dfbee583adfd58dfa5a636b9c70e45f Binary files /dev/null and b/data/iconsets/transports/weather/16x16/dnd.png differ diff --git a/data/iconsets/transports/weather/16x16/error.png b/data/iconsets/transports/weather/16x16/error.png new file mode 100644 index 0000000000000000000000000000000000000000..d99d62a84d68752d10ab8ba1b73c6b502c2569bc Binary files /dev/null and b/data/iconsets/transports/weather/16x16/error.png differ diff --git a/data/iconsets/transports/weather/16x16/invisible.png b/data/iconsets/transports/weather/16x16/invisible.png new file mode 100644 index 0000000000000000000000000000000000000000..b8bb1b8700a5159c253c0cf5791f98d113c1493d Binary files /dev/null and b/data/iconsets/transports/weather/16x16/invisible.png differ diff --git a/data/iconsets/transports/weather/16x16/message.gif b/data/iconsets/transports/weather/16x16/message.gif new file mode 100644 index 0000000000000000000000000000000000000000..fea7551cf8423fb811a2a4e566caa1ff1fb90617 Binary files /dev/null and b/data/iconsets/transports/weather/16x16/message.gif differ diff --git a/data/iconsets/transports/weather/16x16/not_in_the_roster.png b/data/iconsets/transports/weather/16x16/not_in_the_roster.png new file mode 100644 index 0000000000000000000000000000000000000000..bdf776ea71dcaab42911920cdef336879a001155 Binary files /dev/null and b/data/iconsets/transports/weather/16x16/not_in_the_roster.png differ diff --git a/data/iconsets/transports/weather/16x16/offline.png b/data/iconsets/transports/weather/16x16/offline.png new file mode 100644 index 0000000000000000000000000000000000000000..334a85c1bd99c66ceb7cc5f929652747e965807d Binary files /dev/null and b/data/iconsets/transports/weather/16x16/offline.png differ diff --git a/data/iconsets/transports/weather/16x16/online.png b/data/iconsets/transports/weather/16x16/online.png new file mode 100644 index 0000000000000000000000000000000000000000..a6bbdedb2da4ede00bfc82bfc4977c32d1ae8d06 Binary files /dev/null and b/data/iconsets/transports/weather/16x16/online.png differ diff --git a/data/iconsets/transports/weather/16x16/xa.png b/data/iconsets/transports/weather/16x16/xa.png new file mode 100644 index 0000000000000000000000000000000000000000..e38b5889ac0ff5b93e5b4186a7873b7f19f93278 Binary files /dev/null and b/data/iconsets/transports/weather/16x16/xa.png differ diff --git a/src/common/gajim.py b/src/common/gajim.py index 4a7c72c9db24c82d7a10a9ad6722d72f8b475fa8..b967e257b438e03b8a565dc1108a77fa3f85d5c9 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -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' diff --git a/src/roster_window.py b/src/roster_window.py index 19b8f3b050294d6af56074a304649a9b61e25e90..79ff63988f32f49a252f1367b4aa045b5217691c 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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')