Use different icons sizes for Hildon/ other platforms

This commit is contained in:
Christian Dywan 2009-11-03 23:40:21 +01:00
parent 1c0d18bc06
commit 643b59eeb2

View file

@ -15,7 +15,13 @@ def add_image (bld, category, name):
if rsvg_convert: if rsvg_convert:
Utils.check_dir (blddir + '/icons') Utils.check_dir (blddir + '/icons')
for size in [16, 22, 24, 32, 48]: if bld.env['HAVE_HILDON']:
category = 'hildon'
icon_sizes = [48, 64]
else:
icon_sizes = [16, 22, 24, 32, 48]
for size in icon_sizes:
format = str (size) + 'x' + str (size) format = str (size) + 'x' + str (size)
if os.access (srcdir + '/icons/' + format + '/' + name + '.png', os.F_OK): if os.access (srcdir + '/icons/' + format + '/' + name + '.png', os.F_OK):
bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category, bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category,