Revert "gtype: disallow adding interfaces after the fact"

This reverts commit d6a075b0d8.
This commit is contained in:
Rico Tzschichholz
2012-12-18 21:23:13 +01:00
parent f0f6c8d231
commit d1ab41c940
3 changed files with 11 additions and 18 deletions

View File

@@ -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))
{