Do not load transport iconsets (only for 'opened' and 'closed') if it's not needed
This commit is contained in:
parent
a560e6c7c8
commit
d691dce2a0
|
@ -2735,17 +2735,19 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
pixc = gtk.gdk.pixbuf_new_from_file(os.path.join(path, 'closed.png'))
|
pixc = gtk.gdk.pixbuf_new_from_file(os.path.join(path, 'closed.png'))
|
||||||
self.jabber_state_images['closed'] = self.load_iconset(path, pixc)
|
self.jabber_state_images['closed'] = self.load_iconset(path, pixc)
|
||||||
|
|
||||||
|
if gajim.config.get('use_transports_iconsets'):
|
||||||
# update opened and closed transport iconsets
|
# update opened and closed transport iconsets
|
||||||
|
# standard transport iconsets are loaded one time in init()
|
||||||
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
||||||
folders = os.listdir(t_path)
|
folders = os.listdir(t_path)
|
||||||
for transport in folders:
|
for transport in folders:
|
||||||
if transport == '.svn':
|
if transport == '.svn':
|
||||||
continue
|
continue
|
||||||
folder = os.path.join(t_path, transport, '16x16')
|
folder = os.path.join(t_path, transport, '16x16')
|
||||||
self.transports_state_images['opened'][transport] = self.load_iconset(
|
self.transports_state_images['opened'][transport] = \
|
||||||
folder, pixo, transport = True)
|
self.load_iconset(folder, pixo, transport = True)
|
||||||
self.transports_state_images['closed'][transport] = self.load_iconset(
|
self.transports_state_images['closed'][transport] = \
|
||||||
folder, pixc, transport = True)
|
self.load_iconset(folder, pixc, transport = True)
|
||||||
|
|
||||||
def reload_jabber_state_images(self):
|
def reload_jabber_state_images(self):
|
||||||
self.make_jabber_state_images()
|
self.make_jabber_state_images()
|
||||||
|
|
Loading…
Reference in New Issue