mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
DESCRIPTION = "Device formfactor information"
|
DESCRIPTION = "Device formfactor information"
|
||||||
SECTION = "base"
|
SECTION = "base"
|
||||||
PR = "r7"
|
PR = "r8"
|
||||||
|
|
||||||
SRC_URI = "file://config file://machconfig"
|
SRC_URI = "file://config file://machconfig"
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
@@ -14,4 +14,11 @@ do_install() {
|
|||||||
if [ -s "${S}/machconfig" ]; then
|
if [ -s "${S}/machconfig" ]; then
|
||||||
install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/
|
install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/
|
||||||
fi
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user