From da3f23c74c828acbbeaaa6891f2a245d9379dde3 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Sat, 30 Jul 2005 14:26:49 +0000 Subject: Fixes Bug 311309: subclassing gtk.Bin reports... --- gobject/gobjectmodule.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gobject') diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 603ca23..002d117 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -1158,10 +1158,7 @@ pyg_type_register(PyTypeObject *class, char *type_name) /* propagate new constructor API compatility flag from parent to child type */ has_new_constructor_api = g_type_get_qdata(parent_type, pygobject_has_updated_constructor_key); - if (has_new_constructor_api == NULL) - g_warning("Constructor wrapper for %s needs to be updated to the new API", - g_type_name(parent_type)); - else + if (has_new_constructor_api != NULL) g_type_set_qdata(instance_type, pygobject_has_updated_constructor_key, has_new_constructor_api); -- cgit