Only add object to list new objects when it has a custom constructor
authorBenjamin Otte <otte@gnome.org>
Thu, 8 Oct 2009 18:01:15 +0000 (20:01 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 30 Nov 2009 19:52:33 +0000 (20:52 +0100)
commit2a78adc5e3f5b33e92cc55570397da24e062aa24
treeb82e7ff87b1bb640a9135d2c13984013fc733458
parentf0f32a7ef0f7ae8cdd2aa2992d2e116dd7b602fe
Only add object to list new objects when it has a custom constructor

This works around the need to take a custom mutex twice and add the
object to a GSList of objects that are currently in construction for the
common case. Only when the constructor is overwritten do we use the
previous behavior and allow things like singleton objects.

The only slightly incompatible change is that previously, it was ok to
call g_object_set() on construct-only properties while the object was
initialized. This will now fail. If that behavior is needed, setting a
custom constructor that just chains up will reenable this functionality.

https://bugzilla.gnome.org/show_bug.cgi?id=557151
gobject/gobject.c