[gnome-bluetooth/fedora-11] Update default-adapter-powered when no adapters are available
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/fedora-11] Update default-adapter-powered when no adapters are available
- Date: Wed, 16 Sep 2009 10:43:11 +0000 (UTC)
commit df5c7c34bc948bfb1a81fe21fdd417365eba7ae0
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 e929ad4..52a7481 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -970,7 +970,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]