ObjectG.interfaceInstallProperty

Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created gobject.ParamSpec, but normally ObjectClass.overrideProperty will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.

This function is meant to be called from the interface's default vtable initialization function (the class_init member of GTypeInfo) It must not be called after after class_init has been called for any object types implementing this interface.

If pspec is a floating reference, it will be consumed.

class ObjectG
static
void
interfaceInstallProperty

Parameters

gIface TypeInterface

any interface vtable for the interface, or the default vtable for the interface.

pspec ParamSpec

the gobject.ParamSpec for the new property

Meta