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)
|
||||||
|
|
||||||
# update opened and closed transport iconsets
|
if gajim.config.get('use_transports_iconsets'):
|
||||||
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
# update opened and closed transport iconsets
|
||||||
folders = os.listdir(t_path)
|
# standard transport iconsets are loaded one time in init()
|
||||||
for transport in folders:
|
t_path = os.path.join(gajim.DATA_DIR, 'iconsets', 'transports')
|
||||||
if transport == '.svn':
|
folders = os.listdir(t_path)
|
||||||
continue
|
for transport in folders:
|
||||||
folder = os.path.join(t_path, transport, '16x16')
|
if transport == '.svn':
|
||||||
self.transports_state_images['opened'][transport] = self.load_iconset(
|
continue
|
||||||
folder, pixo, transport = True)
|
folder = os.path.join(t_path, transport, '16x16')
|
||||||
self.transports_state_images['closed'][transport] = self.load_iconset(
|
self.transports_state_images['opened'][transport] = \
|
||||||
folder, pixc, transport = True)
|
self.load_iconset(folder, pixo, transport = True)
|
||||||
|
self.transports_state_images['closed'][transport] = \
|
||||||
|
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