mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Revert "gtype: disallow adding interfaces after the fact"
This reverts commit d6a075b0d8
.
This commit is contained in:
@@ -1002,12 +1002,6 @@ check_add_interface_L (GType instance_type,
|
||||
NODE_NAME (node));
|
||||
return FALSE;
|
||||
}
|
||||
if (node->data && node->data->class.class)
|
||||
{
|
||||
g_warning ("attempting to add an interface (%s) to class (%s) after class_init",
|
||||
NODE_NAME (iface), NODE_NAME (node));
|
||||
return FALSE;
|
||||
}
|
||||
tnode = lookup_type_node_I (NODE_PARENT_TYPE (iface));
|
||||
if (NODE_PARENT_TYPE (tnode) && !type_lookup_iface_entry_L (node, tnode))
|
||||
{
|
||||
|
Reference in New Issue
Block a user