[gnome-bluetooth/gnome-2-32] Make sure all the unblocked adapters are powered



commit 36d1c464268f81499cb1c3570686bac21b42db51
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 52616e6..2a1d51b 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -1138,13 +1138,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]