[gnoduino] Bug 673733 - Install multiple icon sizes into the hicolor theme



commit aeddfdc2263a87f8b5963749e5447b80e095eb93
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Thu Jan 3 00:35:18 2013 +0100

    Bug 673733 - Install multiple icon sizes into the hicolor theme

 scripts/gen-pixmaps.sh |    5 ++++-
 setup.py               |    9 ++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/scripts/gen-pixmaps.sh b/scripts/gen-pixmaps.sh
index 1648b3b..60d93e7 100755
--- a/scripts/gen-pixmaps.sh
+++ b/scripts/gen-pixmaps.sh
@@ -2,6 +2,9 @@
 
 for F in `ls pixmaps/*.svg | grep gnoduino`
 do
-    rsvg-convert --format=png --width=48 --height=48 -o `echo ${F} | sed -e 's#.svg#.png#'` ${F}
+	for S in 16 22 24 32 48 64; do
+		mkdir -p pixmaps/${S}x${S}
+		rsvg-convert --format=png --width=${S} --height=${S} -o `echo ${F} | sed -e "s#^pixmaps/#pixmaps/${S}x${S}/#" | sed -e 's#.svg#.png#'` ${F}
+	done
 done
 
diff --git a/setup.py b/setup.py
index 7f17c2b..f1b3fbf 100644
--- a/setup.py
+++ b/setup.py
@@ -113,11 +113,18 @@ def get_data_files():
     data_files = [
         ('share/gnoduino/ui', ['ui/main.ui', 'ui/arduino.xml']),
         ('share/gnoduino/', ['ChangeLog', 'NEWS', 'preferences.txt']),
-        ('share/gnoduino/pixmaps', glob.glob('pixmaps/*.png')),
+        ('share/gnoduino/pixmaps', ['pixmaps/48x48/gnoduino.png']),
         ('share/gnoduino/scripts', ['scripts/gen_boards.py', 'scripts/gen_programmers.py', 'scripts/gen-pixmaps.sh']),
         ('share/man/man1', ['data/gnoduino.1']),
         ('share/applications', ['data/gnoduino.desktop']),
         ('share/pixmaps', ['pixmaps/gnoduino.png']),
+        ('share/icons/hicolor/16x16/apps', ['pixmaps/16x16/gnoduino.png']),
+        ('share/icons/hicolor/22x22/apps', ['pixmaps/22x22/gnoduino.png']),
+        ('share/icons/hicolor/24x24/apps', ['pixmaps/24x24/gnoduino.png']),
+        ('share/icons/hicolor/32x32/apps', ['pixmaps/32x32/gnoduino.png']),
+        ('share/icons/hicolor/48x48/apps', ['pixmaps/48x48/gnoduino.png']),
+        ('share/icons/hicolor/64x64/apps', ['pixmaps/64x64/gnoduino.png']),
+        ('share/icons/hicolor/scalable/apps', ['pixmaps/gnoduino.svg']),
     ]
     for subdir in ("hardware", "libraries", "reference"):
         # We ship hardware/libraries/reference modules if not already installed



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]