g_param_spec_object doesn't support interface types
@grim
Submitted by Gary Kramlich Link to original bug (#673402)
Description
Created attachment 211193 Patch allowing G_TYPE_INTERFACE derived types for g_param_spec_object
I have a property that I want to be a GObject the implements a specific interface. The problem is that g_param_spec_object only checks if the given type is a subclass of G_TYPE_OBJECT and if not, it bombs out on a g_return_val_if_fail. I've included a simple patch that will check if it's a subclass of G_TYPE_INTERFACE as well.
Patch 211193, "Patch allowing G_TYPE_INTERFACE derived types for g_param_spec_object":
g_param_spec_object_support_interfaces.diff
Version: 2.32.x