diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-07-27 17:13:19 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-07-27 17:13:19 (GMT) |
commit | 77f88a59bfb9296df7e995e99218d27862136588 (patch) | |
tree | 6e9897f690b50da53d77266095eccb358912a1cb /plugins/pychrysa/helpers.h | |
parent | 359055e28bcd195fb03fd0deb1a30e5a04d5ce58 (diff) |
Fixed several mistakes in the Python bindings.
Diffstat (limited to 'plugins/pychrysa/helpers.h')
-rw-r--r-- | plugins/pychrysa/helpers.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysa/helpers.h b/plugins/pychrysa/helpers.h index 950c85b..9fb83d0 100644 --- a/plugins/pychrysa/helpers.h +++ b/plugins/pychrysa/helpers.h @@ -65,7 +65,10 @@ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); /* Enregistre correctement une surcouche de conversion GObject. */ -bool register_class_for_pygobject(PyObject *, GType, PyTypeObject *, PyTypeObject *); +bool _register_class_for_pygobject(PyObject *, GType, PyTypeObject *, PyTypeObject *, ...); + +#define register_class_for_pygobject(dict, gtype, type, base) \ + _register_class_for_pygobject(dict, gtype, type, base, NULL) /** |