diff options
Diffstat (limited to 'codegen')
-rw-r--r-- | codegen/codegen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/codegen/codegen.py b/codegen/codegen.py index 3afd3d59..6aaa855c 100644 --- a/codegen/codegen.py +++ b/codegen/codegen.py @@ -789,12 +789,16 @@ class GObjectWrapper(Wrapper): print >> out, " for (i = 0; i < nparams; ++i)" print >> out, " g_value_unset(¶ms[i].value);" else: + print >> out, " static char* kwlist[] = { NULL };"; print >> out if constructor.deprecated is not None: print >> out, ' if (PyErr_Warn(PyExc_DeprecationWarning, "%s") < 0)' %\ constructor.deprecated print >> out, ' return -1;' print >> out + print >> out, ' if (!PyArg_ParseTupleAndKeywords(args, kwargs, ":%s.__init__", kwlist))' % classname + print >> out, " return -1;" + print >> out print >> out, " self->obj = g_object_newv(obj_type, 0, NULL);" print >> out, \ |