[gnome-bluetooth] lib: Fix LegacyPairing property changing
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix LegacyPairing property changing
- Date: Mon, 25 Nov 2013 11:33:22 +0000 (UTC)
commit 0c4ed02334e3a1ae808d9976c4be13879c7e59a2
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 18 17:45:33 2013 +0100
lib: Fix LegacyPairing property changing
As this is usually checked async, we need to listen for the
property changing before pairing.
lib/bluetooth-client.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 330c9ed..f041b4f 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -296,6 +296,13 @@ device_g_properties_changed (GDBusProxy *device,
gtk_tree_store_set (priv->store, &iter,
BLUETOOTH_COLUMN_UUIDS, uuids, -1);
g_strfreev (uuids);
+ } else if (g_str_equal (property, "LegacyPairing") == TRUE) {
+ gboolean legacypairing;
+
+ legacypairing = g_variant_get_boolean (v);
+ gtk_tree_store_set (priv->store, &iter,
+ BLUETOOTH_COLUMN_LEGACYPAIRING, legacypairing,
+ -1);
} else {
g_debug ("Unhandled property: %s", property);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]