[oe-commits] Koen Kooi : gtk-icon-cache bbclass: build caches for all icondirs in ${datadir}/icons
GIT User account
git at amethyst.openembedded.net
Tue Apr 14 08:32:52 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: b579bdce5da97216a6020c2c1fe18839d5dd5603
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b579bdce5da97216a6020c2c1fe18839d5dd5603
Author: Koen Kooi <koen at openembedded.org>
Date: Tue Apr 14 10:25:38 2009 +0200
gtk-icon-cache bbclass: build caches for all icondirs in ${datadir}/icons
---
classes/gtk-icon-cache.bbclass | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/classes/gtk-icon-cache.bbclass b/classes/gtk-icon-cache.bbclass
index b256365..ea1fdff 100644
--- a/classes/gtk-icon-cache.bbclass
+++ b/classes/gtk-icon-cache.bbclass
@@ -11,11 +11,19 @@ fi
# Update the pixbuf loaders in case they haven't been registered yet
gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
-gtk-update-icon-cache -q /usr/share/icons/hicolor
+for icondir in /usr/share/icons/* ; do
+ if [ -d $icondir ] ; then
+ gtk-update-icon-cache -qt $icondir
+ fi
+done
}
gtk_icon_cache_postrm() {
-gtk-update-icon-cache -q /usr/share/icons/hicolor
+for icondir in /usr/share/icons/* ; do
+ if [ -d $icondir ] ; then
+ gtk-update-icon-cache -qt $icondir
+ fi
+done
}
python populate_packages_append () {
@@ -24,7 +32,7 @@ python populate_packages_append () {
workdir = bb.data.getVar('WORKDIR', d, 1)
for pkg in packages:
- icon_dir = '%s/install/%s/%s/icons/hicolor' % (workdir, pkg, bb.data.getVar('datadir', d, 1))
+ icon_dir = '%s/install/%s/%s/icons' % (workdir, pkg, bb.data.getVar('datadir', d, 1))
if not os.path.exists(icon_dir):
continue
More information about the Openembedded-commits
mailing list