make suspend on low power actually a hibernate - because yes,
authorCarsten Haitzler <raster@rasterman.com>
Tue, 4 Oct 2011 14:17:28 +0000 (14:17 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 4 Oct 2011 14:17:28 +0000 (14:17 +0000)
hibernate makes more sense.

SVN revision: 63808

src/modules/battery/e_mod_config.c
src/modules/battery/e_mod_main.c

index 652f014..37c5c81 100644 (file)
@@ -214,7 +214,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_D
                             NULL, &(cfdata->poll_interval), 100);
    e_widget_table_object_append(o, ob, 0, 1, 1, 1, 1, 0, 1, 0);
    
-   ob = e_widget_label_add(evas, _("Suspend when below:"));
+   ob = e_widget_label_add(evas, _("Hibernate when below:"));
    e_widget_table_object_append(o, ob, 0, 2, 1, 1, 1, 0, 1, 0);
    ob = e_widget_slider_add(evas, 1, 0, _("%1.0f %%"), 0, 50, 1, 0, 
                             NULL, &(cfdata->suspend_below), 100);
index 0dc371a..91faadc 100644 (file)
@@ -564,7 +564,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery,
         if ((have_battery) && (!have_power) && (full >= 0) &&
             (battery_config->suspend_below > 0) &&
             (full < battery_config->suspend_below))
-           e_sys_action_do(E_SYS_SUSPEND, NULL);
+           e_sys_action_do(E_SYS_HIBERNATE, NULL);
      }
    if (!have_battery)
      e_powersave_mode_set(E_POWERSAVE_MODE_LOW);