mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02:00
Unconditionally mark objects as in-construction
This will be used for things other than custom constructors in the following commits.
This commit is contained in:
@@ -1272,11 +1272,8 @@ g_object_init (GObject *object,
|
|||||||
g_object_notify_queue_freeze (object, FALSE);
|
g_object_notify_queue_freeze (object, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CLASS_HAS_CUSTOM_CONSTRUCTOR (class))
|
/* mark object in-construction for notify_queue_thaw() and to allow construct-only properties */
|
||||||
{
|
set_object_in_construction (object);
|
||||||
/* mark object in-construction for notify_queue_thaw() and to allow construct-only properties */
|
|
||||||
set_object_in_construction (object);
|
|
||||||
}
|
|
||||||
|
|
||||||
GOBJECT_IF_DEBUG (OBJECTS,
|
GOBJECT_IF_DEBUG (OBJECTS,
|
||||||
{
|
{
|
||||||
@@ -2164,6 +2161,8 @@ g_object_new_internal (GObjectClass *class,
|
|||||||
|
|
||||||
g_assert (g_object_is_aligned (object));
|
g_assert (g_object_is_aligned (object));
|
||||||
|
|
||||||
|
unset_object_in_construction (object);
|
||||||
|
|
||||||
if (CLASS_HAS_PROPS (class))
|
if (CLASS_HAS_PROPS (class))
|
||||||
{
|
{
|
||||||
GSList *node;
|
GSList *node;
|
||||||
|
Reference in New Issue
Block a user