[pygobject] Derive SignalInfo info from CallableInfo
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Derive SignalInfo info from CallableInfo
- Date: Fri, 4 Oct 2013 23:06:01 +0000 (UTC)
commit 4408f83be70e92c5e3943f5ce85c551e7f2c87d0
Author: Simon Feltman <sfeltman src gnome org>
Date: Fri Oct 4 15:50:05 2013 -0700
Derive SignalInfo info from CallableInfo
Change Python class derivation of PyGISignalInfo to use PyGICallableInfo as
the base class. This accurately reflects the GI class layout and provides
the callable information for signals.
https://bugzilla.gnome.org/show_bug.cgi?id=709008
gi/pygi-info.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 632b308..c8d194d 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -600,7 +600,7 @@ static PyMethodDef _PyGIErrorDomainInfo_methods[] = {
};
/* SignalInfo */
-PYGLIB_DEFINE_TYPE ("gi.SignalInfo", PyGISignalInfo_Type, PyGIBaseInfo);
+PYGLIB_DEFINE_TYPE ("gi.SignalInfo", PyGISignalInfo_Type, PyGICallableInfo);
static PyMethodDef _PyGISignalInfo_methods[] = {
{ NULL, NULL, 0 }
@@ -2025,6 +2025,9 @@ _pygi_info_register_types (PyObject *m)
PyGICallableInfo_Type);
PyGIVFuncInfo_Type.tp_descr_get = (descrgetfunc) _vfunc_info_descr_get;
+ _PyGI_REGISTER_TYPE (m, PyGISignalInfo_Type, SignalInfo,
+ PyGICallableInfo_Type);
+
_PyGI_REGISTER_TYPE (m, PyGIUnresolvedInfo_Type, UnresolvedInfo,
PyGIBaseInfo_Type);
_PyGI_REGISTER_TYPE (m, PyGICallbackInfo_Type, CallbackInfo,
@@ -2051,8 +2054,6 @@ _pygi_info_register_types (PyObject *m)
PyGIBaseInfo_Type);
_PyGI_REGISTER_TYPE (m, PyGIErrorDomainInfo_Type, ErrorDomainInfo,
PyGIBaseInfo_Type);
- _PyGI_REGISTER_TYPE (m, PyGISignalInfo_Type, SignalInfo,
- PyGIBaseInfo_Type);
_PyGI_REGISTER_TYPE (m, PyGIPropertyInfo_Type, PropertyInfo,
PyGIBaseInfo_Type);
_PyGI_REGISTER_TYPE (m, PyGIArgInfo_Type, ArgInfo,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]