create transport images with opened and closed pixbuf on it. Fixes #1491

This commit is contained in:
Yann Leboulanger 2006-01-31 13:33:52 +00:00
parent 13d4262d68
commit a315c21348
1 changed files with 13 additions and 0 deletions

View File

@ -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)