[oe-commits] Paul Eggleton : opie-taskbar: force calibration on first start
git version control
git at git.openembedded.org
Sun Apr 4 20:48:57 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: b78d3343acaa77109130ee48050942e7325a7319
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b78d3343acaa77109130ee48050942e7325a7319
Author: Paul Eggleton <bluelightning at bluelightning.org>
Date: Sun Apr 4 21:44:01 2010 +0100
opie-taskbar: force calibration on first start
Since we install default /etc/pointercal files that aren't perfect for
all devices, this patch forces Opie to do a screen calibration during
the first start wizard regardless of whether the pointercal file exists
or not.
Signed-off-by: Paul Eggleton <bluelightning at bluelightning.org>
---
.../opie-taskbar/force-firstuse-calibrate.patch | 20 ++++++++++++++++++++
recipes/opie-taskbar/opie-taskbar_1.2.4.bb | 3 ++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch b/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch
new file mode 100644
index 0000000..44d5d25
--- /dev/null
+++ b/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch
@@ -0,0 +1,20 @@
+diff --git a/core/launcher/firstuse.cpp b/core/launcher/firstuse.cpp
+index 8c02ab0..cf731c2 100644
+--- launcher/firstuse.cpp
++++ launcher/firstuse.cpp
+@@ -175,10 +175,13 @@ FirstUse::FirstUse(QWidget* parent, const char * name, WFlags wf) :
+ m_calHandler = ( QWSServer::mouseHandler() && QWSServer::mouseHandler()->inherits("QCalibratedMouseHandler") ) ? true : false;
+
+ if ( m_calHandler) {
+- if ( !QFile::exists("/etc/pointercal") ) {
++ // Since Angstrom is installing default pointer calibration files
++ // that don't match everyone's devices, we need to force calibration
++ // on first use.
++// if ( !QFile::exists("/etc/pointercal") ) {
+ needCalibrate = TRUE;
+ grabMouse();
+- }
++// }
+ }
+
+ Config config("locale");
diff --git a/recipes/opie-taskbar/opie-taskbar_1.2.4.bb b/recipes/opie-taskbar/opie-taskbar_1.2.4.bb
index b566045..a9df7c9 100644
--- a/recipes/opie-taskbar/opie-taskbar_1.2.4.bb
+++ b/recipes/opie-taskbar/opie-taskbar_1.2.4.bb
@@ -1,5 +1,5 @@
require ${PN}.inc
-PR = "r3"
+PR = "r4"
SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/apps/calibrate \
${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/settings/mediummount \
@@ -14,4 +14,5 @@ SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/apps/calibrate \
file://restart-from-bindir.patch;patch=1 \
file://server-pro-1.2.4.patch;patch=1 \
file://firstuse-path.patch;patch=1 \
+ file://force-firstuse-calibrate.patch;patch=1 \
"
More information about the Openembedded-commits
mailing list