[gnome-bluetooth/gnome-2-30] Make sure all the unblocked adapters are powered
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-2-30] Make sure all the unblocked adapters are powered
- Date: Tue, 10 Aug 2010 14:18:44 +0000 (UTC)
commit 5f350d3d6205cdcba4f1ff06bd8bec47d5102897
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 63ae359..b0dc829 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -1147,13 +1147,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 ();
+
gconf = gconf_client_get_default();
value = gconf_client_get (gconf, PREF_SHOW_ICON, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]