Re: inherited properties



Murray Cumming wrote:

Does something_set_property() need to handle the properties of the base
object too? That seems silly, but I can't think how else those
properties could be set.

The set/get_property() virtual function in the class structure is not a signal class closure. The property system makes sure it calls the get_property function of the class the property was defined on. So setting the "visible" property a GtkHBox will call the set_property method in GtkWidget's class structure (not GtkHBox's). No need to worry about parent properties or chaining.

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]