diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-08-08 18:24:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-08-08 18:24:21 (GMT) |
commit | c0cc928bfab0af2cdbf16e9a04d41983f4732b93 (patch) | |
tree | eb62ba48bae31886ddad2385c2ccfbc1e002ec6f /plugins/pychrysalide/arch | |
parent | 1b7c29ed7dd9561a387be694f09c089e6126716c (diff) |
Introduce singletons for operands.
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/operand.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/pychrysalide/arch/operand.c b/plugins/pychrysalide/arch/operand.c index 7fa5118..f3eaa27 100644 --- a/plugins/pychrysalide/arch/operand.c +++ b/plugins/pychrysalide/arch/operand.c @@ -35,6 +35,7 @@ #include "../access.h" #include "../helpers.h" +#include "../glibext/singleton.h" @@ -768,6 +769,9 @@ bool ensure_python_arch_operand_is_registered(void) dict = PyModule_GetDict(module); + if (!ensure_python_singleton_candidate_is_registered()) + return false; + if (!register_class_for_pygobject(dict, G_TYPE_ARCH_OPERAND, type, &PyGObject_Type)) return false; |