summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/helpers.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-14 16:38:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-14 16:38:10 (GMT)
commit97fa09113c7988e4b4639190ba9bc51f9ced4d33 (patch)
tree1b4fe85843b4cdbf685e5116a96c4f387a865561 /plugins/pychrysalide/helpers.c
parente526727b94444030a3ae4dc6d4431cb72aea31e0 (diff)
Extended the Python API to build custom GUI panels.
Diffstat (limited to 'plugins/pychrysalide/helpers.c')
-rw-r--r--plugins/pychrysalide/helpers.c5
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;