diff options
Diffstat (limited to 'plugins/pychrysalide/gui')
| -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;      } | 
