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



commit fccbcb8bec552c831f99ad5cbc6b9ad7ac58e17d
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 f636f90..d588822 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1671,6 +1671,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);
     }
 
   gtk_widget_show_all (widget);


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