diff options
author | Koen Kooi <koen@openembedded.org> | 2009-04-14 10:25:38 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-04-14 10:25:38 +0200 |
commit | b579bdce5da97216a6020c2c1fe18839d5dd5603 (patch) | |
tree | 8ea4b3af4799ffc383cc3937daaa0fcc7b85e8a2 /classes | |
parent | 18ef4a1270454f9f47f03c3692366c863793a6e5 (diff) |
gtk-icon-cache bbclass: build caches for all icondirs in ${datadir}/icons
Diffstat (limited to 'classes')
-rw-r--r-- | 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 b256365175..ea1fdff3dd 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 |