mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-20 22:29:17 +02:00
gtype: remove interface-after-init exceptions
A year ago, we tried to remove support for adding interfaces on already-initialised types. There were problems with the C++ and C# bindings at the time, so we added exceptions to give them a bit more time to catch up. It's already one cycle after when these exceptions were planned to be removed, so let's take them out now. https://bugzilla.gnome.org/show_bug.cgi?id=697229
This commit is contained in:
parent
91b9aef0c9
commit
545b44444b
@ -1007,11 +1007,6 @@ check_add_interface_L (GType instance_type,
|
|||||||
{
|
{
|
||||||
g_warning ("attempting to add an interface (%s) to class (%s) after class_init",
|
g_warning ("attempting to add an interface (%s) to class (%s) after class_init",
|
||||||
NODE_NAME (iface), NODE_NAME (node));
|
NODE_NAME (iface), NODE_NAME (node));
|
||||||
|
|
||||||
/* See https://bugzilla.gnome.org/show_bug.cgi?id=697229,
|
|
||||||
* https://bugzilla.gnome.org/show_bug.cgi?id=687659
|
|
||||||
*/
|
|
||||||
if (!g_str_has_prefix (NODE_NAME (node), "gtkmm__CustomObject_") && !strstr (NODE_NAME (node), "_gtksharp_"))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
tnode = lookup_type_node_I (NODE_PARENT_TYPE (iface));
|
tnode = lookup_type_node_I (NODE_PARENT_TYPE (iface));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user