Re: [set][get]_property



Ron Steinke <rsteinke w-link net> writes:
> >From examining the code, it looks like the [set,get]_property
> functions of GObject (and its descendents) only handle the
> properties of the object itself and not those of its
> ancestors. Is this true, and if so is there a reason for this?
> 

Sure, to avoid cut-and-paste - every widget subclass shouldn't have to
handle the properties of GtkWidget, and chaining up would be kind of
expensive since all the subclass set_property would do nothing.

So set/get property aren't virtual functions in the normal sense.

Havoc




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