summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-05-15 06:19:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-05-15 06:19:37 (GMT)
commit8b26581fe8606e743e57f5a6cc38c5b89eca3599 (patch)
treee1d59a35a55a5184027950bc4d4f8e1681d758c0 /plugins/pychrysalide/helpers.c
parent891258b135000eda6f95f2a38db37bc073b0502b (diff)
Update the type definition for newer versions of the Python API.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r--plugins/pychrysalide/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c
index 7199eca..b038340 100644
--- a/plugins/pychrysalide/helpers.c
+++ b/plugins/pychrysalide/helpers.c
@@ -1111,7 +1111,7 @@ bool register_class_for_dynamic_pygobject(GType gtype, PyTypeObject *type, PyTyp
result = _register_class_for_pygobject(dict, gtype, type, &PyGObject_Type, base, NULL);
- Py_TYPE(type) = legacy_parent;
+ Py_SET_TYPE(type, legacy_parent);
/**
* Comme la mise en place dynamique de nouveau GType court-circuite les