Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 6fbbfac04a44f78715f1c5b19a278f7a > files > 5

xfce4-power-manager-1.0.10-2.fc16.src.rpm

From f7a48533e198f3bb8d1ff5cffc1d2ec3bfdca6e6 Mon Sep 17 00:00:00 2001
From: Ali Abdallah <aliov@xfce.org>
Date: Thu, 05 May 2011 09:17:46 +0000
Subject: Fix default spin down toogle value.

---
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 0d83734..67cc5a1 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -944,6 +944,8 @@ xfpm_settings_on_battery (XfconfChannel *channel, gboolean auth_hibernate,
 #endif
 
     spin_down = GTK_WIDGET (gtk_builder_get_object (xml, "spin-down-on-battery"));
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (spin_down), 
+				  xfconf_channel_get_bool (channel, PROPERTIES_PREFIX SPIN_DOWN_ON_BATTERY, TRUE));
     gtk_widget_set_sensitive (spin_down, can_spin_down);
     
     if ( !devkit_disk )
@@ -1091,6 +1093,9 @@ xfpm_settings_on_ac (XfconfChannel *channel, gboolean auth_suspend,
 #endif
 
     spin_down = GTK_WIDGET (gtk_builder_get_object (xml, "spin-down-on-ac"));
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (spin_down), 
+				  xfconf_channel_get_bool (channel, PROPERTIES_PREFIX SPIN_DOWN_ON_AC, FALSE));
+				  
     gtk_widget_set_sensitive (spin_down, can_spin_down);
     
     if ( !devkit_disk )
--
cgit