From 231d3e3e59d22866de3cdacd811a1f036796afb6 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 17 Aug 2012 11:43:28 -0300 Subject: [PATCH] core: PropertyChanged signal for Icon/class This patch emits the PropertyChanged signal in the Device hierarchy when the remote device class is updated. --- src/device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/device.c b/src/device.c index f612bb06f..7657a74d1 100644 --- a/src/device.c +++ b/src/device.c @@ -2988,9 +2988,14 @@ void btd_device_unref(struct btd_device *device) void device_set_class(struct btd_device *device, uint32_t value) { DBusConnection *conn = get_dbus_connection(); + const char *icon = class_to_icon(value); emit_property_changed(conn, device->path, DEVICE_INTERFACE, "Class", DBUS_TYPE_UINT32, &value); + + if (icon) + emit_property_changed(conn, device->path, DEVICE_INTERFACE, + "Icon", DBUS_TYPE_STRING, &icon); } int device_get_appearance(struct btd_device *device, uint16_t *value) -- 2.47.3