create transport images with opened and closed pixbuf on it. Fixes #1491
This commit is contained in:
parent
13d4262d68
commit
a315c21348
|
@ -2821,7 +2821,20 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
folder = os.path.join(path, transport, '32x32')
|
folder = os.path.join(path, transport, '32x32')
|
||||||
self.transports_state_images['32'][transport] = self.load_iconset(folder)
|
self.transports_state_images['32'][transport] = self.load_iconset(folder)
|
||||||
folder = os.path.join(path, transport, '16x16')
|
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)
|
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
|
# uf_show, img, show, sensitive
|
||||||
liststore = gtk.ListStore(str, gtk.Image, str, bool)
|
liststore = gtk.ListStore(str, gtk.Image, str, bool)
|
||||||
|
|
Loading…
Reference in New Issue