diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-12 17:02:49 (GMT) |
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-12 17:02:49 (GMT) |
| commit | d5b598b14fd4c50847ce536692ded258ba1720ca (patch) | |
| tree | bee74e8bcdd642bf67103529991be9d587c6d1da /plugins/pychrysalide/gui/core | |
| parent | edcd7a2e2919ea880f8aaf649cf7ed8f1eabac1a (diff) | |
Registered basic Python objects in the features namespace.
Diffstat (limited to 'plugins/pychrysalide/gui/core')
| -rw-r--r-- | plugins/pychrysalide/gui/core/items.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/pychrysalide/gui/core/items.c b/plugins/pychrysalide/gui/core/items.c index 82c2c1c..0912bc4 100644 --- a/plugins/pychrysalide/gui/core/items.c +++ b/plugins/pychrysalide/gui/core/items.c @@ -258,7 +258,6 @@ bool ensure_python_items_is_registered(void) { PyTypeObject *type; /* Type Python de 'items' */ PyObject *module; /* Module à recompléter */ - int ret; /* Bilan d'un appel */ type = get_python_items_type(); @@ -271,10 +270,7 @@ bool ensure_python_items_is_registered(void) module = get_access_to_python_module("pychrysalide.gui.core"); - Py_INCREF(type); - ret = PyModule_AddObject(module, "items", (PyObject *)type); - - if (ret != 0) + if (!register_python_module_object(module, type)) return false; } |
