diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-07-30 10:57:08 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-07-30 10:57:08 (GMT) |
commit | fb1d26845908d131b1c92d7d7cd1bc402b656ca4 (patch) | |
tree | a6c6a30482ce97dfe7b985116877bb0ce8b7b0a0 /plugins/pychrysa/helpers.h | |
parent | 7b8eed3f8207fe9b629165f8230e38ee620900ea (diff) |
Registered properly the PyGObject wrappers for Python classes.
Diffstat (limited to 'plugins/pychrysa/helpers.h')
-rw-r--r-- | plugins/pychrysa/helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/pychrysa/helpers.h b/plugins/pychrysa/helpers.h index bd11459..d7e9666 100644 --- a/plugins/pychrysa/helpers.h +++ b/plugins/pychrysa/helpers.h @@ -25,6 +25,7 @@ #define _PLUGINS_HELPERS_H +#include <glib-object.h> #include <Python.h> #include <stdbool.h> @@ -60,5 +61,9 @@ bool PyDict_AddStringConstant(PyTypeObject *, const char *, const char *); #define APPLY_ABSTRACT_FLAG(tp) tp->tp_new = PyBaseObject_Type.tp_new +/* Enregistre correctement une surcouche de conversion GObject. */ +bool register_class_for_pygobject(PyObject *, GType, PyTypeObject *, PyTypeObject *); + + #endif /* _PLUGINS_HELPERS_H */ |