summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-01-14 03:02:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-01-14 03:02:42 (GMT)
commitd87c3d00f6448233cfcabc2b6d8bc82e395d4190 (patch)
treeb2be6d75bd97189118124cb11fb1a535988dd4c4 /plugins/pychrysalide/helpers.h
parent9d6c6af8ea3a21e206b0ffb65c04db5cca7154b1 (diff)
Update code for Python abstract GLib objects constructors.
Diffstat (limited to 'plugins/pychrysalide/helpers.h')
-rw-r--r--plugins/pychrysalide/helpers.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pychrysalide/helpers.h b/plugins/pychrysalide/helpers.h
index 133726a..2808bf1 100644
--- a/plugins/pychrysalide/helpers.h
+++ b/plugins/pychrysalide/helpers.h
@@ -159,7 +159,7 @@ bool register_python_module_object(PyObject *, PyTypeObject *);
/* Accompagne la création d'une instance dérivée en Python. */
-PyObject *python_abstract_constructor(PyTypeObject *, GType, GClassInitFunc, PyObject *, PyObject *);
+PyObject *python_abstract_constructor(PyTypeObject *, GType, PyObject *, PyObject *);
#define CREATE_DYN_CONSTRUCTOR(pyname, gbase) \
@@ -172,12 +172,12 @@ static PyObject *py_ ## pyname ## _new(PyTypeObject *type, PyObject *args, PyObj
}
-#define CREATE_DYN_ABSTRACT_CONSTRUCTOR(pyname, gbase, cinit) \
+#define CREATE_DYN_ABSTRACT_CONSTRUCTOR(pyname, gbase) \
static PyObject *py_ ## pyname ## _new(PyTypeObject *, PyObject *, PyObject *); \
static PyObject *py_ ## pyname ## _new(PyTypeObject *type, PyObject *args, PyObject *kwds) \
{ \
PyObject *result; /* Objet à retourner */ \
- result = python_abstract_constructor(type, gbase, (GClassInitFunc)cinit, args, kwds); \
+ result = python_abstract_constructor(type, gbase, args, kwds); \
return result; \
}