aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_powersave.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-03-12 05:43:36 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-03-12 05:43:36 +0000
commit167bc53a57cdb6f0280660dc860459a0c4a4ee8a (patch)
treed3e9b7adf7b6066418d51d72dce2118aeb70cb75 /src/bin/e_powersave.c
parent*** empty log message *** (diff)
downloadenlightenment-167bc53a57cdb6f0280660dc860459a0c4a4ee8a.tar.gz
batery module now playes with e's powersave api :)
SVN revision: 33989
Diffstat (limited to 'src/bin/e_powersave.c')
-rw-r--r--src/bin/e_powersave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_powersave.c b/src/bin/e_powersave.c
index 4d5d725c0..78ce201aa 100644
--- a/src/bin/e_powersave.c
+++ b/src/bin/e_powersave.c
@@ -96,6 +96,8 @@ e_powersave_mode_set(E_Powersave_Mode mode)
{
if (mode < powersave_mode_min) mode = powersave_mode_min;
else if (mode > powersave_mode_max) mode = powersave_mode_max;
+ if (powersave_mode == mode) return;
+ printf("CHANGE PW SAVE MODE TO %i / %i\n", (int)mode, E_POWERSAVE_MODE_EXTREME);
powersave_mode = mode;
_e_powersave_mode_eval();
}