From 864639f2983a58d93952ca30b208ad738eb65363 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Fri, 8 Jan 2010 18:00:58 +0000 Subject: [PATCH] [render] Fix name of 16x16 icons --- render.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/render.py b/render.py index 76766c6..f5dfd5c 100755 --- a/render.py +++ b/render.py @@ -229,19 +229,19 @@ class IconTheme: debug("Dropping " + id) continue + if not((width == '16' and height == '16') or + (width == '24' and height == '24')): + debug("Dropping " + id) + continue + # strip the moblin- prefix if id.startswith('moblin-'): id = id[7:] # strip the 16- prefix - if width == 16 and id.startswith('16-'): + if width == '16' and id.startswith('16-'): id = id[3:] - if not((width == '16' and height == '16') or - (width == '24' and height == '24')): - debug("Dropping " + id) - continue - file = os.path.join(dirs[width], id + '.png') print('Generating ' + file) inkscape.export(id, file, int(width), int(height)) -- 2.11.4.GIT