From 39d8baf516dec696c46da420fc9e0c069fb9d2c0 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 4 Oct 2021 20:55:34 +0100 Subject: [PATCH] trivial: Notify when the FuDevice:parent is set This allows us to perform a callback when the parent instance is set or changed. --- libfwupdplugin/fu-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfwupdplugin/fu-device.c b/libfwupdplugin/fu-device.c index 737fe3223..c6aabeb94 100644 --- a/libfwupdplugin/fu-device.c +++ b/libfwupdplugin/fu-device.c @@ -1034,6 +1034,7 @@ fu_device_set_parent(FuDevice *self, FuDevice *parent) } fwupd_device_set_parent(FWUPD_DEVICE(self), FWUPD_DEVICE(parent)); + g_object_notify(G_OBJECT(self), "parent"); } /**