mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
gtype: interface-after-init exception for glibmm
glibmm has a pretty difficult-to-solve problem caused by our recent change to deny addition of interfaces to classes after initialisation. They're looking for a long-term workaround for the problem, but in the meantime we can allow the registration to succeed (with warning) if the class looks like it's being defined by gtkmm. https://bugzilla.gnome.org/show_bug.cgi?id=697229
This commit is contained in:
parent
859e4239c5
commit
c5307e4cba
@ -1006,6 +1006,9 @@ check_add_interface_L (GType instance_type,
|
||||
{
|
||||
g_warning ("attempting to add an interface (%s) to class (%s) after class_init",
|
||||
NODE_NAME (iface), NODE_NAME (node));
|
||||
|
||||
/* See https://bugzilla.gnome.org/show_bug.cgi?id=697229 */
|
||||
if (!g_str_has_prefix (NODE_NAME (node), "gtkmm__CustomObject_"))
|
||||
return FALSE;
|
||||
}
|
||||
tnode = lookup_type_node_I (NODE_PARENT_TYPE (iface));
|
||||
|
Loading…
Reference in New Issue
Block a user