summaryrefslogtreecommitdiff
path: root/gi/pygi-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pygi-info.c')
-rw-r--r--gi/pygi-info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 75b7f938..d1c9fee8 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -1303,7 +1303,9 @@ _wrap_g_object_info_register_type (PyGIBaseInfo *self,
}
g_type = g_registered_type_info_get_g_type((GIRegisteredTypeInfo *)self->info);
+
pyg_register_object_type(g_type, type);
+ pyg_set_object_has_new_constructor(g_type);
Py_RETURN_NONE;
}