mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 13:23:31 +02:00
Revert "GObject: prevent installing properties after init"
This reverts commit ddb0ce1421
.
Colin's smoke testing has found issues in at least gjs and
gnome-settings-daemon. We'll need to see if we can address those.
This commit is contained in:
@@ -540,10 +540,8 @@ g_object_class_install_property (GObjectClass *class,
|
||||
g_return_if_fail (G_IS_PARAM_SPEC (pspec));
|
||||
|
||||
if (CLASS_HAS_DERIVED_CLASS (class))
|
||||
g_error ("Attempt to add property %s::%s to class after it was derived", G_OBJECT_CLASS_NAME (class), pspec->name);
|
||||
|
||||
if (!g_type_is_in_init (G_OBJECT_CLASS_TYPE (class)))
|
||||
g_error ("Attempt to add property %s::%s after class was initialised", G_OBJECT_CLASS_NAME (class), pspec->name);
|
||||
g_error ("Attempt to add property %s::%s to class after it was derived",
|
||||
G_OBJECT_CLASS_NAME (class), pspec->name);
|
||||
|
||||
class->flags |= CLASS_HAS_PROPS_FLAG;
|
||||
|
||||
@@ -655,9 +653,6 @@ g_object_class_install_properties (GObjectClass *oclass,
|
||||
g_error ("Attempt to add properties to %s after it was derived",
|
||||
G_OBJECT_CLASS_NAME (oclass));
|
||||
|
||||
if (!g_type_is_in_init (G_OBJECT_CLASS_TYPE (oclass)))
|
||||
g_error ("Attempt to add properties %s after it was initialised", G_OBJECT_CLASS_NAME (oclass));
|
||||
|
||||
oclass_type = G_OBJECT_CLASS_TYPE (oclass);
|
||||
parent_type = g_type_parent (oclass_type);
|
||||
|
||||
|
Reference in New Issue
Block a user