changeset 0ded48e58747 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=0ded48e58747 description: add 24x24 icons. Take them from 32x32 if they don't exist in the iconset. Fixes #7225
diffstat:
src/gtkgui_helpers.py | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 04cebaf21e27 -r 0ded48e58747 src/gtkgui_helpers.py --- a/src/gtkgui_helpers.py Thu Aug 30 23:57:20 2012 -0400 +++ b/src/gtkgui_helpers.py Fri Aug 31 09:54:32 2012 +0200 @@ -1045,6 +1045,19 @@ path = os.path.join(helpers.get_iconset_path(iconset), '32x32') gajim.interface.jabber_state_images['32'] = load_iconset(path)
+ path = os.path.join(helpers.get_iconset_path(iconset), '24x24') + if (os.path.exists(path)): + gajim.interface.jabber_state_images['24'] = load_iconset(path) + else: + gajim.interface.jabber_state_images['24'] = {} + # Resize 32x32 icons to 24x24 + for each in gajim.interface.jabber_state_images['32']: + img = gtk.Image() + pix = gajim.interface.jabber_state_images['32'][each].get_pixbuf() + scaled_pix = pix.scale_simple(24, 24, gtk.gdk.INTERP_BILINEAR) + img.set_from_pixbuf(scaled_pix) + gajim.interface.jabber_state_images['24'][each] = img + path = os.path.join(helpers.get_iconset_path(iconset), '16x16') gajim.interface.jabber_state_images['16'] = load_iconset(path)