From a315c21348799bc65313901961d36972bbbeb427 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 31 Jan 2006 13:33:52 +0000 Subject: [PATCH] create transport images with opened and closed pixbuf on it. Fixes #1491 --- src/roster_window.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 3d786b0c3..55c77d90b 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2821,7 +2821,20 @@ _('If "%s" accepts this request you will know his or her status.') % jid) folder = os.path.join(path, transport, '32x32') self.transports_state_images['32'][transport] = self.load_iconset(folder) folder = os.path.join(path, transport, '16x16') + iconset = gajim.config.get('iconset') + if not iconset: + iconset = 'dcraven' + iconset_path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, + '16x16') self.transports_state_images['16'][transport] = self.load_iconset(folder) + pix = gtk.gdk.pixbuf_new_from_file(os.path.join(iconset_path, + 'opened.png')) + self.transports_state_images['opened'][transport] = self.load_iconset( + path, pix) + pix = gtk.gdk.pixbuf_new_from_file(os.path.join(iconset_path, + 'closed.png')) + self.transports_state_images['closed'][transport] = self.load_iconset( + path, pix) # uf_show, img, show, sensitive liststore = gtk.ListStore(str, gtk.Image, str, bool)