trivial: Notify when the FuDevice:parent is set

This allows us to perform a callback when the parent instance is set or
changed.
This commit is contained in:
Richard Hughes 2021-10-04 20:55:34 +01:00
parent 88b1b35a72
commit 39d8baf516

View File

@ -1034,6 +1034,7 @@ fu_device_set_parent(FuDevice *self, FuDevice *parent)
} }
fwupd_device_set_parent(FWUPD_DEVICE(self), FWUPD_DEVICE(parent)); fwupd_device_set_parent(FWUPD_DEVICE(self), FWUPD_DEVICE(parent));
g_object_notify(G_OBJECT(self), "parent");
} }
/** /**