gnome-control-center/gnome-control-center-power-fix-initial-state-of-Bluetooth.patch
2015-02-16 14:33:44 +00:00

27 lines
852 B
Diff

From aa594a7f145a88b737b781375c0f5bf681a43c74 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Wed, 28 Jan 2015 16:20:23 +0100
Subject: 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
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
--
cgit v0.10.1