summaryrefslogtreecommitdiff
path: root/gi/pygboxed.c
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pygboxed.c')
-rw-r--r--gi/pygboxed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pygboxed.c b/gi/pygboxed.c
index 5659bc12..595f8159 100644
--- a/gi/pygboxed.c
+++ b/gi/pygboxed.c
@@ -154,7 +154,7 @@ pygi_register_gboxed (PyObject *dict, const gchar *class_name,
if (!type->tp_dealloc) type->tp_dealloc = (destructor)gboxed_dealloc;
- Py_TYPE(type) = &PyType_Type;
+ Py_SET_TYPE(type, &PyType_Type);
g_assert (Py_TYPE (&PyGBoxed_Type) != NULL);
type->tp_base = &PyGBoxed_Type;