]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
opie-batteryapplet: fix battery status for iPAQs running Linux 2.6
authorSlavek Banko <slavek.banko@axis.cz>
Tue, 25 Jul 2006 19:57:01 +0000 (21:57 +0200)
committerRene Wagner <rw@handhelds.org>
Tue, 25 Jul 2006 19:57:01 +0000 (21:57 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch [new file with mode: 0644]
org.handhelds.familiar/packages/opie-batteryapplet/opie-batteryapplet_1.2.1.bb

diff --git a/org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch b/org.handhelds.familiar/packages/opie-batteryapplet/files/iPaq-2.6-batteryapplet.patch
new file mode 100644 (file)
index 0000000..b56e2c3
--- /dev/null
@@ -0,0 +1,16 @@
+diff -aruN batteryapplet.orig/batterystatus.cpp batteryapplet/batterystatus.cpp
+--- batteryapplet.orig/batterystatus.cpp       2005-06-14 20:14:38.000000000 +0200
++++ batteryapplet/batterystatus.cpp    2006-05-28 23:56:44.000000000 +0200
+@@ -81,11 +81,9 @@
+                 }
+             }
+         }
+-    } else {
+-        QMessageBox::warning(this, tr("Failure"),tr("could not open file"));
++      procApmIpaq.close();
+     }
+-    procApmIpaq.close();
+     jackPercent = perc2.toInt();
+     ipaqPercent = perc1.toInt();
index 3feba24a63dc9bafbbe3a7ba1ee19976d76fcf28..501ff32d235d249c2226a786703d70f16e0a1981 100644 (file)
@@ -1,7 +1,8 @@
 include ${PN}.inc
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/applets/batteryapplet \
            ${HANDHELDS_CVS};tag=${TAG};module=opie/pics \
-           ${HANDHELDS_CVS};tag=${TAG};module=opie/apps"
+           ${HANDHELDS_CVS};tag=${TAG};module=opie/apps \
+          file://iPaq-2.6-batteryapplet.patch;patch=1"