Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
pygobject
Commits
e534c167
Commit
e534c167
authored
Mar 24, 2018
by
Christoph Reiter
🐍
Browse files
pygi-info: set type fields before PyType_Ready() so PyPy picks them up
parent
d630a2d5
Pipeline
#7078
passed with stages
in 8 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gi/pygi-info.c
View file @
e534c167
...
...
@@ -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
);
...
...
Christoph Reiter
🐍
@creiter
mentioned in issue
#217 (closed)
·
May 08, 2018
mentioned in issue
#217 (closed)
mentioned in issue #217
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment