diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-12-07 15:53:34 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-07 21:32:52 +0400 |
commit | 168478c05077fd5a58ec62ecb82b78203e0ddebb (patch) | |
tree | aaf460c036ee88089d71f9833371b027f14784b3 | |
parent | c2403e9ea3ef9324a2752c23cd3b23c22ea013e0 (diff) | |
download | bluez-168478c05077fd5a58ec62ecb82b78203e0ddebb.tar.gz |
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.
-rw-r--r-- | src/device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 5380c1ad8..d7a00ec1e 100644 --- a/src/device.c +++ b/src/device.c @@ -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) |