install_property


Description:

public void install_property (uint property_id, ParamSpec pspec)

Installs a new property.

All properties should be installed during the class initializer. It is possible to install properties after that, but doing so is not recommend, and specifically, is not guaranteed to be thread-safe vs. use of properties on the same type on other threads.

Note that it is possible to redefine a property in a derived class, by installing a property with the same name. This can be useful at times, e.g. to change the range of allowed values or the default value.

Parameters:

this

a ObjectClass

property_id

the id for the new property

pspec

the ParamSpec for the new property




2022 vala-language.org