Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/battery
Modified Files:
batget.c
Log Message:
if we have apm as well on a new kernel - use that as it will probably take
preference to power_supply class stuff
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/battery/batget.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- batget.c 15 Apr 2008 15:20:59 -0000 1.8
+++ batget.c 28 Apr 2008 11:12:25 -0000 1.9
@@ -1348,7 +1348,8 @@
#elif defined(HAVE_CFBASE_H) /* OS X */
darwin_init();
#else
- if (ecore_file_is_dir("/sys/class/power_supply")) /* >= 2.6.24 */
+ if ((ecore_file_is_dir("/sys/class/power_supply")) &&
+ (!ecore_file_exists("/proc/apm"))) /* >= 2.6.24 */
{
mode = CHECK_SYS_CLASS_POWER_SUPPLY;
linux_sys_class_power_supply_init();
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs