[gnome-bluetooth] Make sure all the unblocked adapters are powered
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Make sure all the unblocked adapters are powered
- Date: Tue, 10 Aug 2010 14:19:14 +0000 (UTC)
commit 44fcc334dc6672a14ff18f1b185004cc512c7c76
Author: Bastien Nocera <hadess hadess net>
Date: Tue Aug 10 15:13:01 2010 +0100
Make sure all the unblocked adapters are powered
On startup. Otherwise we might end up with unblocked, yet
unpowered adapters showing up in the UI.
applet/main.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/applet/main.c b/applet/main.c
index a510d2b..cbf0c37 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -1164,13 +1164,19 @@ int main(int argc, char *argv[])
G_CALLBACK(device_removed), NULL);
g_signal_connect (G_OBJECT (devices_model), "row-changed",
G_CALLBACK (device_changed), NULL);
- /* Set the default */
+
+ /* Set the default adapter */
device_changed (devices_model, NULL, NULL, NULL);
if (bluetooth_killswitch_has_killswitches (killswitch) != FALSE) {
killswitch_state_changed (killswitch,
bluetooth_killswitch_get_state (killswitch));
}
+ /* Make sure all the unblocked adapters are powered,
+ * so as to avoid seeing unpowered, but unblocked
+ * devices */
+ bluetooth_set_adapter_powered ();
+
settings = g_settings_new (SCHEMA_NAME);
show_icon_pref = g_settings_get_boolean (settings, PREF_SHOW_ICON);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]