summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-09-11 00:16:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-09-11 00:16:00 (GMT)
commitd9e20328c04f3b77c77422d44767c028656678ef (patch)
treeede3b0f36ae5e29eb2c366035468980edf5e462d /plugins/pychrysalide
parentdca1d8cefde54fa6f23c2963aef61d211fc1d7d0 (diff)
Return the right status on loading success.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/gtkext/displaypanel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/pychrysalide/gtkext/displaypanel.c b/plugins/pychrysalide/gtkext/displaypanel.c
index b2eb038..a871af9 100644
--- a/plugins/pychrysalide/gtkext/displaypanel.c
+++ b/plugins/pychrysalide/gtkext/displaypanel.c
@@ -98,13 +98,10 @@ PyTypeObject *get_python_display_panel_type(void)
bool ensure_python_display_panel_is_registered(void)
{
- bool result; /* Bilan à retourner */
PyTypeObject *type; /* Type Python 'DisplayPanel' */
PyObject *module; /* Module à recompléter */
PyObject *dict; /* Dictionnaire du module */
- result = false;
-
type = get_python_display_panel_type();
if (!PyType_HasFeature(type, Py_TPFLAGS_READY))
@@ -118,6 +115,6 @@ bool ensure_python_display_panel_is_registered(void)
}
- return result;
+ return true;
}