gtk-touchscreen-mode-enable: Add little recipe that sets this in GTKRC.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 3 Nov 2009 11:29:39 +0000 (11:29 +0000)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 3 Nov 2009 11:29:39 +0000 (11:29 +0000)
recipes/gtk/gtk-touchscreen-mode-enable.bb [new file with mode: 0644]

diff --git a/recipes/gtk/gtk-touchscreen-mode-enable.bb b/recipes/gtk/gtk-touchscreen-mode-enable.bb
new file mode 100644 (file)
index 0000000..08a0185
--- /dev/null
@@ -0,0 +1,16 @@
+DESCRIPTION = "Enable gtk-touchscreen-mode in gtkrc"
+
+RDEPENDS = "gtk+"
+
+PR = "r2"
+
+ALLOW_EMPTY_${PN} = "1"
+PACKAGE_ARCH = "all"
+
+pkg_postinst() {
+#!/bin/sh
+mkdir -p $D${sysconfdir}/gtk-2.0
+touch $D${sysconfdir}/gtk-2.0/gtkrc
+sed -i /gtk-touchscreen-mode = 1/d $D${sysconfdir}/gtk-2.0/gtkrc
+echo 'gtk-touchscreen-mode = 1' >> $D${sysconfdir}/gtk-2.0/gtkrc
+}