Skip to contentSkip to conversation

device: When the Class changes, Icon might too

PATCH In review Bastien Nocera 1 participant 1 message Dec 7, 2013 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 device: When the Class changes, Icon might too

Send out a PropertyChanged signal when the Class changes for Icon also changing, as it's likely that the Icon needs to be refetched.

Tested with the PS3 Sixaxis controller connecting the first time around, as it would not budge from not having any icons until the client was restarted.

---
 src/device.c | 2 ++
 1 file changed, 2 insertions(+)
src/device.c +2 -0
index 5380c1a..d7a00ec 100644
@@ -2285,6 +2285,8 @@ void device_set_class(struct btd_device *device, uint32_t class)
 
 	g_dbus_emit_property_changed(dbus_conn, device->path,
 						DEVICE_INTERFACE, "Class");
+	g_dbus_emit_property_changed(dbus_conn, device->path,
+						DEVICE_INTERFACE, "Icon");
 }
 
 uint32_t btd_device_get_class(struct btd_device *device)
Signature · 1 line
1.8.4.2