summaryrefslogtreecommitdiffstats
path: root/bindings/python/wrapper_top.c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/wrapper_top.c')
-rw-r--r--bindings/python/wrapper_top.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c
index cb704aaa..c703b927 100644
--- a/bindings/python/wrapper_top.c
+++ b/bindings/python/wrapper_top.c
@@ -437,7 +437,7 @@ PyGObjectPtr_repr(PyGObjectPtr *obj)
static PyMemberDef PyGObjectPtr_members[] = {
{"typename", T_OBJECT, offsetof(PyGObjectPtr, typename), 0, "typename"},
- {NULL}
+ {NULL, 0, 0, 0, NULL}
};
static PyObject*
@@ -453,7 +453,7 @@ PyGObjectPtr_get_refcount(PyGObjectPtr *self, G_GNUC_UNUSED void *closure)
static PyGetSetDef PyGObjectPtr_getseters[] = {
{"refcount", (getter)PyGObjectPtr_get_refcount, NULL,
"reference count of intern GObject*", NULL},
- {NULL} /* Sentinel */
+ {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
};
@@ -466,7 +466,7 @@ static PyTypeObject PyGObjectPtrType = {
(destructor)PyGObjectPtr_dealloc, /* tp_dealloc */
0, /*tp_print*/
0, /*tp_getattr*/
- 0, /*tp_setattr*/
+ .tp_setattr = 0, /*tp_setattr*/
0, /*tp_compare*/
(reprfunc)PyGObjectPtr_repr, /*tp_repr*/
0, /*tp_as_number*/
@@ -489,6 +489,8 @@ static PyTypeObject PyGObjectPtrType = {
0, /* tp_methods */
PyGObjectPtr_members, /* tp_members */
PyGObjectPtr_getseters, /* tp_getset */
+ NULL,
+ NULL
};
static void