[gnome-bluetooth] Update default-adapter-powered when no adapters are available



commit b6e320546b74564cdb01d70f574ee9b0090ae098
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jul 30 18:10:41 2009 +0100

    Update default-adapter-powered when no adapters are available
    
    Otherwise we might think it's still enabled when it's not.

 lib/bluetooth-client.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 203d7fe..b7fe403 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -971,7 +971,9 @@ static void adapter_removed(DBusGProxy *manager,
 	if (gtk_tree_model_iter_n_children (GTK_TREE_MODEL(priv->store), NULL) == 0) {
 		g_free(priv->default_adapter);
 		priv->default_adapter = NULL;
+		priv->default_adapter_powered = FALSE;
 		g_object_notify (G_OBJECT (client), "default-adapter");
+		g_object_notify (G_OBJECT (client), "default-adapter-powered");
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]