After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607016 - docs should mention property notification order
docs should mention property notification order
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-01-14 21:13 UTC by Christian Persch
Modified: 2013-11-23 21:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2010-01-14 21:13:59 UTC
Doing this:

g_object_set (o, "a", ..., "b", ..., NULL)

or this:

g_object_freeze_notify(o);
g_object_notify(o, "a");
g_object_notify(o, "b");
g_object_thaw_notify(o);

causes the notify signal to be emitted twice, in the inverse order in which the properties were set/notified:

notify::b
notify::a

Since this is a bit counter-intuitive (and can lead to bugs when you don't know this and rely on the order of notification, e.g. bug 606995), I think the g_object_notify and g_object_set[_property] (and gtk_container_child_set[_property] and gtk_widget_child_notify) docs should mention it.