summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-07 21:29:15 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-07 21:29:15 +0000
commitbea90e612afeeffd481f425f185da5296d5ae08c (patch)
tree0fbedb0b7843f63a881a7844cdb3a854bb047a64
parentdeff1f408a2c4420cd91076645daf2a10d49ccd2 (diff)
downloadopenembedded-core-bea90e612afeeffd481f425f185da5296d5ae08c.tar.gz
openembedded-core-bea90e612afeeffd481f425f185da5296d5ae08c.tar.bz2
openembedded-core-bea90e612afeeffd481f425f185da5296d5ae08c.zip
formfactor: Create suitable gtkrc file enabling gtk touchscreen mode for machines with touchscreens
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3418 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/formfactor/formfactor_0.0.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/packages/formfactor/formfactor_0.0.bb b/meta/packages/formfactor/formfactor_0.0.bb
index 2daef0a41f..ddbb6e4997 100644
--- a/meta/packages/formfactor/formfactor_0.0.bb
+++ b/meta/packages/formfactor/formfactor_0.0.bb
@@ -1,6 +1,6 @@
DESCRIPTION = "Device formfactor information"
SECTION = "base"
-PR = "r7"
+PR = "r8"
SRC_URI = "file://config file://machconfig"
S = "${WORKDIR}"
@@ -14,4 +14,11 @@ do_install() {
if [ -s "${S}/machconfig" ]; then
install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/
fi
+
+ install -d ${D}${sysconfdir}/gtk-2.0/
+ . ${S}/machconfig
+
+ if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
+ echo "gtk-touchscreen-mode = 1" > ${D}${sysconfdir}/gtk-2.0/gtkrc
+ fi
}