ToastFreeware
/
gregoa
/
zavai.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c1cb23
)
Removed workaround, sent patches to devkit-power instead
author
Enrico Zini
<enrico@enricozini.org>
Wed, 30 Sep 2009 22:14:29 +0000
(23:14 +0100)
committer
Enrico Zini
<enrico@enricozini.org>
Wed, 30 Sep 2009 22:14:29 +0000
(23:14 +0100)
src/app_power.vala
patch
|
blob
|
history
diff --git
a/src/app_power.vala
b/src/app_power.vala
index 6e518774f672baec8b7d5eeaa0f0fbf3240a3e71..0096c129d9930deac283ebd2d26f47bd85266834 100644
(file)
--- a/
src/app_power.vala
+++ b/
src/app_power.vala
@@
-597,9
+597,7
@@
public void init()
stderr.printf("Found new device %s\n", dev.native_path);
dev.print();
stderr.printf("Rechargeable: %s\n", dev.is_rechargeable ? "yes" : "no");
stderr.printf("Found new device %s\n", dev.native_path);
dev.print();
stderr.printf("Rechargeable: %s\n", dev.is_rechargeable ? "yes" : "no");
- // On the FreeRunner, for some reason the battery does not
- // appear as rechargeable, so I also match it literally
- if (!dev.is_rechargeable && dev.native_path != "/sys/class/power_supply/battery") continue;
+ if (!dev.is_rechargeable) continue;
var bi = new BatteryIcon(dev);
bi.set_visible(true);
battery_icons.add(bi);
var bi = new BatteryIcon(dev);
bi.set_visible(true);
battery_icons.add(bi);