summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-10-04 12:19:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-10 15:21:39 +0100
commit31e19a34a582bfbe4498fdaf4afd3b84de490aea (patch)
tree129c0f755962005d657b43e36d9474d4c42452c2 /meta
parent86c9aa8081f107420cd3763d0566d779daddc2b1 (diff)
downloadpoky-31e19a34a582bfbe4498fdaf4afd3b84de490aea.tar.gz
sato-icon-theme: use gtk-icon-cache helper class
Instead of explicitly updating the icon cache use the helper class that also forces a loader update at the same time. This eliminates the possibility of updating the icon cache without any gdk-pixbuf loaders. Also check that the Sato icon theme isn't already set to avoid appending to the file every time the postinst runs. [YOCTO #2399] (From OE-Core rev: 9d98dbdae4c05fcf50d546f554a04dc3f0bd66c3) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc15
-rw-r--r--meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb2
2 files changed, 8 insertions, 9 deletions
diff --git a/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc b/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
index 9fd10126c1..0bd48143a9 100644
--- a/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
+++ b/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
@@ -8,18 +8,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=56a830bbe6e4697fe6cbbae01bb7c2b2"
8SECTION = "x11" 8SECTION = "x11"
9DEPENDS = "" 9DEPENDS = ""
10 10
11inherit autotools pkgconfig allarch 11inherit autotools pkgconfig allarch gtk-icon-cache
12 12
13FILES_${PN} += "${datadir}" 13FILES_${PN} += "${datadir}"
14 14
15EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping" 15EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping"
16 16
17#explictly setting "Sato" as default icon theme to avoid icon missing due to 17# Explictly setting "Sato" as the default icon theme to avoid flickering from
18#tricky race condition 18# the desktop and settings daemon racing. This shouldn't be done here but in the sato image
19pkg_postinst_${PN} () { 19pkg_postinst_${PN} () {
20 if [ "x$D" != "x" ]; then 20 mkdir -p $D/etc/gtk-2.0
21 exit 1 21
22 fi 22 grep -s -q -e ^gtk-icon-theme-name.*\"Sato\" $D/etc/gtk-2.0/gtkrc || \
23 gtk-update-icon-cache -q /usr/share/icons/Sato 23 echo 'gtk-icon-theme-name = "Sato"' >> $D/etc/gtk-2.0/gtkrc
24 echo 'gtk-icon-theme-name = "Sato"' >> /etc/gtk-2.0/gtkrc
25} 24}
diff --git a/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb b/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
index 108f8e81ae..64053598bc 100644
--- a/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
+++ b/meta/recipes-sato/sato-icon-theme/sato-icon-theme_0.4.1.bb
@@ -2,7 +2,7 @@ require sato-icon-theme.inc
2 2
3DEPENDS += "icon-naming-utils-native" 3DEPENDS += "icon-naming-utils-native"
4 4
5PR = "r3" 5PR = "r4"
6 6
7SRC_URI = "http://pokylinux.org/releases/sato/${BPN}-${PV}.tar.gz \ 7SRC_URI = "http://pokylinux.org/releases/sato/${BPN}-${PV}.tar.gz \
8 file://iconpath-option.patch \ 8 file://iconpath-option.patch \