[gnome-bluetooth/gnome-3-10] lib: Handle "Class" property updating
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-3-10] lib: Handle "Class" property updating
- Date: Mon, 25 Nov 2013 17:24:29 +0000 (UTC)
commit 9d851e4abf613917ffa90422a602ceebd7fbd081
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 25 15:30:56 2013 +0100
lib: Handle "Class" property updating
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 f041b4f..b536b01 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -303,6 +303,13 @@ device_g_properties_changed (GDBusProxy *device,
gtk_tree_store_set (priv->store, &iter,
BLUETOOTH_COLUMN_LEGACYPAIRING, legacypairing,
-1);
+ } else if (g_str_equal (property, "Class") == TRUE) {
+ BluetoothType type;
+
+ type = v ? bluetooth_class_to_type (g_variant_get_uint32 (v)) : BLUETOOTH_TYPE_ANY;
+ gtk_tree_store_set (priv->store, &iter,
+ BLUETOOTH_COLUMN_TYPE, type,
+ -1);
} else {
g_debug ("Unhandled property: %s", property);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]