Re: gnome-libs property changes, property notification



On 20 Dec 2000, Martin Baulig wrote:

> This should now be fixed.
> 
> > another note on notification. in 2.0 with object properties, we're emitting
> > a notification signal for each property that has changed on an object, the
> > signal's detail holds the property name. that means, code like:
> 
> Hmm, I have a little problem with this notification stuff:
> 
> Currently, some/most of the set_property() handlers call the accessor function
> to modify things. When I now add that notify call in the accessor function,
> doesn't this result in a duplicate notification if the accessor func is called
> from the set_property() handler ?

nope, because g_object_set() automatically does freeze_notify()
at its entry and thaw_notify() at its end.

---
ciaoTJ





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