interface_install_property


Description:

public static void interface_install_property (TypeInterface g_iface, ParamSpec pspec)

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 ParamSpec, but normally override_property 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 TypeInfo.) 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.

Parameters:

g_iface

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

pspec

the ParamSpec for the new property