diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-14 16:38:10 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-14 16:38:10 (GMT) |
commit | 97fa09113c7988e4b4639190ba9bc51f9ced4d33 (patch) | |
tree | 1b4fe85843b4cdbf685e5116a96c4f387a865561 /plugins/pychrysalide/helpers.c | |
parent | e526727b94444030a3ae4dc6d4431cb72aea31e0 (diff) |
Extended the Python API to build custom GUI panels.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r-- | plugins/pychrysalide/helpers.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysalide/helpers.c b/plugins/pychrysalide/helpers.c index ce3d0f4..9237aba 100644 --- a/plugins/pychrysalide/helpers.c +++ b/plugins/pychrysalide/helpers.c @@ -31,6 +31,9 @@ #include <string.h> +#include <common/extstr.h> + + #include "access.h" #include "constval.h" @@ -692,7 +695,7 @@ bool _register_class_for_pygobject(PyObject *dict, GType gtype, PyTypeObject *ty * Création d'un dictionnaire complet pour la simulation d'un "import *". */ - if (result) + if (result && startswith(type->tp_name, "pychrysalide.")) result = include_python_type_into_features(dict, type); return result; |