diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-08-10 15:13:01 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-08-10 15:14:10 +0100 |
commit | 2e93c4689974c7e5a9d85a34167086400b6773d8 (patch) | |
tree | f4c5c25786d95acf4de9650629dd041678053956 | |
parent | 234cad9fabd0d6f4955daf653d06fedda9c5d610 (diff) | |
download | gnome-bluetooth-2e93c4689974c7e5a9d85a34167086400b6773d8.tar.gz |
Make sure all the unblocked adapters are poweredgnome-2-28
On startup. Otherwise we might end up with unblocked, yet
unpowered adapters showing up in the UI.
-rw-r--r-- | applet/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/applet/main.c b/applet/main.c index e28dbf0c..3b5da7a1 100644 --- a/applet/main.c +++ b/applet/main.c @@ -1082,13 +1082,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); |