[Goodies-commits] r7887 - in xfce4-power-manager/trunk: . settings src
Ali Abdallah
aliov at xfce.org
Mon Aug 3 08:40:38 CEST 2009
Author: aliov
Date: 2009-08-03 06:40:38 +0000 (Mon, 03 Aug 2009)
New Revision: 7887
Modified:
xfce4-power-manager/trunk/ChangeLog
xfce4-power-manager/trunk/settings/xfpm-settings.c
xfce4-power-manager/trunk/src/xfpm-xfconf.c
Log:
* Change the minimum critical level to 5%, the previous commit
was broken and also 1% is too low.
Modified: xfce4-power-manager/trunk/ChangeLog
===================================================================
--- xfce4-power-manager/trunk/ChangeLog 2009-08-03 06:28:19 UTC (rev 7886)
+++ xfce4-power-manager/trunk/ChangeLog 2009-08-03 06:40:38 UTC (rev 7887)
@@ -1,3 +1,7 @@
+2009-08-03: aliov at xfce.org
+ * Change the minimum critical level to 5%, the previous commit
+ was broken and also 1% is too low.
+
2009-08-03: Ali aliov at xfce.org
* Allow 1% as a critical power level option.
Modified: xfce4-power-manager/trunk/settings/xfpm-settings.c
===================================================================
--- xfce4-power-manager/trunk/settings/xfpm-settings.c 2009-08-03 06:28:19 UTC (rev 7886)
+++ xfce4-power-manager/trunk/settings/xfpm-settings.c 2009-08-03 06:40:38 UTC (rev 7887)
@@ -1346,12 +1346,12 @@
gtk_widget_set_tooltip_text (critical_level,
_("When all the power sources of the computer reach this charge level"));
- val = xfconf_channel_get_uint (channel, PROPERTIES_PREFIX CRITICAL_POWER_LEVEL, 1 );
+ val = xfconf_channel_get_uint (channel, PROPERTIES_PREFIX CRITICAL_POWER_LEVEL, 5);
if ( val > 20 )
{
g_critical ("Value %d if out of range for property %s\n", val, CRITICAL_POWER_LEVEL);
- gtk_spin_button_set_value (GTK_SPIN_BUTTON(critical_level), 10);
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON(critical_level), 5);
}
else
gtk_spin_button_set_value (GTK_SPIN_BUTTON(critical_level), val);
Modified: xfce4-power-manager/trunk/src/xfpm-xfconf.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-xfconf.c 2009-08-03 06:28:19 UTC (rev 7886)
+++ xfce4-power-manager/trunk/src/xfpm-xfconf.c 2009-08-03 06:40:38 UTC (rev 7887)
@@ -237,9 +237,9 @@
PROP_CRITICAL_LEVEL,
g_param_spec_uint (CRITICAL_POWER_LEVEL,
NULL, NULL,
- 0,
+ 5,
20,
- 1,
+ 5,
G_PARAM_READWRITE));
/**
More information about the Goodies-commits
mailing list