[gnome-control-center/gnome-3-14] power: Fix initial state of Bluetooth switch



commit aa594a7f145a88b737b781375c0f5bf681a43c74
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 28 16:20:23 2015 +0100

    power: Fix initial state of Bluetooth switch
    
    The initial state of the switch was never set, so if it happened to be
    on, the switch didn't match reality.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725654

 panels/power/cc-power-panel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 9b0449e..5df8049 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1663,6 +1663,8 @@ add_power_saving_section (CcPowerPanel *self)
                                G_CALLBACK (bt_powered_state_changed), self);
       g_signal_connect (G_OBJECT (priv->bt_switch), "notify::active",
                        G_CALLBACK (bt_switch_changed), self);
+
+      bt_powered_state_changed (self);
     }
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]