diff options
Diffstat (limited to 'plugins/pychrysalide/gui')
-rw-r--r-- | plugins/pychrysalide/gui/panels/panel.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/pychrysalide/gui/panels/panel.c b/plugins/pychrysalide/gui/panels/panel.c index d4062d3..0db1df8 100644 --- a/plugins/pychrysalide/gui/panels/panel.c +++ b/plugins/pychrysalide/gui/panels/panel.c @@ -113,14 +113,15 @@ static PyObject *py_panel_item_new(PyTypeObject *type, PyObject *args, PyObject (GClassInitFunc)py_panel_item_init_gclass, NULL); if (first_time) + { status = register_class_for_dynamic_pygobject(gtype, type, base); - else - status = true; - if (!status) - { - result = NULL; - goto exit; + if (!status) + { + result = NULL; + goto exit; + } + } /* On crée, et on laisse ensuite la main à PyGObject_Type.tp_init() */ |