[gnome-bluetooth] lib: Always send "default-adapter-powered"
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Always send "default-adapter-powered"
- Date: Tue, 14 Nov 2017 16:58:55 +0000 (UTC)
commit dbe815a36b3e69beef586d459401bfd4f35e1add
Author: Benjamin Berg <bberg redhat com>
Date: Tue May 16 13:40:52 2017 +0200
lib: Always send "default-adapter-powered"
Fix sending of default-adapter-powered in the case that the default
adapter is being disabled.
https://bugzilla.gnome.org/show_bug.cgi?id=782530
lib/bluetooth-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 5631fee..62975d8 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -623,11 +623,11 @@ adapter_g_properties_changed (GDBusProxy *adapter,
BLUETOOTH_COLUMN_DEFAULT, &is_default, -1);
if (is_default != FALSE && powered) {
g_object_notify (G_OBJECT (client), "default-adapter");
- g_object_notify (G_OBJECT (client), "default-adapter-powered");
g_object_notify (G_OBJECT (client), "default-adapter-discoverable");
g_object_notify (G_OBJECT (client), "default-adapter-discovering");
g_object_notify (G_OBJECT (client), "default-adapter-name");
}
+ g_object_notify (G_OBJECT (client), "default-adapter-powered");
notify = TRUE;
} else if (g_str_equal (property, "Discoverable") == TRUE) {
gboolean discoverable = g_variant_get_boolean (v);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]