Enlightenment SVN wrote:
> Log:
>   alert popup wrong - if time_left < 0 then its unknown and shouldnt be used.
>

|| Shut It Down :)

dh

>   
> Author:       raster
> Date:         2008-11-16 19:42:21 -0800 (Sun, 16 Nov 2008)
> New Revision: 37685
> 
> Modified:
>   trunk/e/src/modules/battery/e_mod_main.c 
> 
> Modified: trunk/e/src/modules/battery/e_mod_main.c
> ===================================================================
> --- trunk/e/src/modules/battery/e_mod_main.c  2008-11-17 01:50:30 UTC (rev 
> 37684)
> +++ trunk/e/src/modules/battery/e_mod_main.c  2008-11-17 03:42:21 UTC (rev 
> 37685)
> @@ -330,6 +330,9 @@
>       }
>     if (batnum > 0) full /= batnum;
>  
> +   printf("full = %i, time_left = %i, have_battery = %i, have_power = %i\n",
> +          full, time_left, have_battery, have_power);
> +   
>     if ((disch == 0) && (chrg == 0)) time_left = -1;
>     if (time_left < 1) time_left = -1;
>     
> @@ -345,7 +348,6 @@
>     
>     conn = e_dbus_bus_get(DBUS_BUS_SYSTEM);
>     if (!conn) return;
> -   // FIXME: free all bat/ac adapters, cattery_config stuff etc.
>     if (battery_config->hal.have)
>       {
>          dbus_pending_call_cancel(battery_config->hal.have);
> @@ -911,7 +913,7 @@
>            }
>          
>          if (have_battery && (!have_power) && (full != 100) &&
> -            ((battery_config->alert && ((time_left / 60) <= 
> battery_config->alert)) || 
> +            (((time_left > 0) && battery_config->alert && ((time_left / 60) 
> <= battery_config->alert)) || 
>               (battery_config->alert_p && (full <= battery_config->alert_p)))
>              )
>            {
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> enlightenment-svn mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to