summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-07-19 20:47:36 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-07-19 20:47:36 +0200
commit81cfe3de65065da2e9693971b05ee35cca6bf483 (patch)
treefa557dc984def90bd9bcbc44e8c98c65923ecd94 /redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
parent04dea0b400cc28566c4a09214a332a2360f8ed3b (diff)
downloadtde-packaging-81cfe3de65065da2e9693971b05ee35cca6bf483.tar.gz
tde-packaging-81cfe3de65065da2e9693971b05ee35cca6bf483.zip
RPM Packaging: more updates
Diffstat (limited to 'redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch')
-rw-r--r--redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch b/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
new file mode 100644
index 000000000..2b09620bb
--- /dev/null
+++ b/redhat/tdelibs/tdelibs-14.0.0-fix_battery_charge.patch
@@ -0,0 +1,18 @@
+--- trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp.batterycharge 2013-07-07 11:55:57.000000000 +0200
++++ trinity-tdelibs-14.0.0~pre596+d6816283/tdecore/tdehardwaredevices.cpp 2013-07-08 20:21:00.196653825 +0200
+@@ -4704,6 +4704,15 @@
+ if (nodename == "alarm") {
+ bdevice->internalSetAlarmEnergy(line.toDouble()/1000000.0);
+ }
++ if (nodename == "charge_full") {
++ bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
++ }
++ if (nodename == "charge_full_design") {
++ bdevice->internalSetMaximumDesignEnergy(line.toDouble()/1000000.0);
++ }
++ if (nodename == "charge_now") {
++ bdevice->internalSetEnergy(line.toDouble()/1000000.0);
++ }
+ if (nodename == "energy_full") {
+ bdevice->internalSetMaximumEnergy(line.toDouble()/1000000.0);
+ }