summaryrefslogtreecommitdiff
path: root/gi
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-03-24 18:27:23 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-03-24 18:27:23 +0100
commite534c1674f212fe361670db063c2fa4f35a459ba (patch)
tree3e05ed0dbab7cf5747bb1401287eac4c74b87763 /gi
parentd630a2d57e0f22f7a9bc674923eca5141b950dd3 (diff)
downloadpygobject-e534c1674f212fe361670db063c2fa4f35a459ba.tar.gz
pygi-info: set type fields before PyType_Ready() so PyPy picks them up
Diffstat (limited to 'gi')
-rw-r--r--gi/pygi-info.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 74bd8ed9..aa551555 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -2316,19 +2316,19 @@ pygi_info_register_types (PyObject *m)
return -1;
}
- _PyGI_REGISTER_TYPE (m, PyGICallableInfo_Type, CallableInfo,
- PyGIBaseInfo_Type);
PyGICallableInfo_Type.tp_call = (ternaryfunc) _callable_info_call;
PyGICallableInfo_Type.tp_dealloc = (destructor) _callable_info_dealloc;
+ _PyGI_REGISTER_TYPE (m, PyGICallableInfo_Type, CallableInfo,
+ PyGIBaseInfo_Type);
- _PyGI_REGISTER_TYPE (m, PyGIFunctionInfo_Type, FunctionInfo,
- PyGICallableInfo_Type);
PyGIFunctionInfo_Type.tp_call = (ternaryfunc) _function_info_call;
PyGIFunctionInfo_Type.tp_descr_get = (descrgetfunc) _function_info_descr_get;
+ _PyGI_REGISTER_TYPE (m, PyGIFunctionInfo_Type, FunctionInfo,
+ PyGICallableInfo_Type);
+ PyGIVFuncInfo_Type.tp_descr_get = (descrgetfunc) _vfunc_info_descr_get;
_PyGI_REGISTER_TYPE (m, PyGIVFuncInfo_Type, VFuncInfo,
PyGICallableInfo_Type);
- PyGIVFuncInfo_Type.tp_descr_get = (descrgetfunc) _vfunc_info_descr_get;
_PyGI_REGISTER_TYPE (m, PyGISignalInfo_Type, SignalInfo,
PyGICallableInfo_Type);