diff options
Diffstat (limited to 'plugins/pychrysalide/gui')
-rw-r--r-- | plugins/pychrysalide/gui/editem.c | 8 | ||||
-rw-r--r-- | plugins/pychrysalide/gui/panels/panel.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/pychrysalide/gui/editem.c b/plugins/pychrysalide/gui/editem.c index 68a0829..c60d678 100644 --- a/plugins/pychrysalide/gui/editem.c +++ b/plugins/pychrysalide/gui/editem.c @@ -298,22 +298,22 @@ PyTypeObject *get_python_editor_item_type(void) { static PyMethodDef py_editor_item_methods[] = { { - "change_content", (PyCFunction)py_editor_item_change_content, + "change_content", py_editor_item_change_content, METH_VARARGS, "change_content($self, /)\n--\n\nCalled by Chrysalide on each content change, if the item is registered." }, { - "change_view", (PyCFunction)py_editor_item_change_view, + "change_view", py_editor_item_change_view, METH_VARARGS, "change_view($self, /)\n--\n\nCalled by Chrysalide on each view change, if the item is registered." }, { - "update_view", (PyCFunction)py_editor_item_update_view, + "update_view", py_editor_item_update_view, METH_VARARGS, "update_view($self, /)\n--\n\nCalled by Chrysalide on each view content change, if the item is registered." }, { - "register", (PyCFunction)py_editor_item_register, + "register", py_editor_item_register, METH_NOARGS, "register($self, /)\n--\n\nregister($self, /)\n--\n\nRegister the item as editor item." }, diff --git a/plugins/pychrysalide/gui/panels/panel.c b/plugins/pychrysalide/gui/panels/panel.c index 6613fac..1721780 100644 --- a/plugins/pychrysalide/gui/panels/panel.c +++ b/plugins/pychrysalide/gui/panels/panel.c @@ -148,7 +148,7 @@ PyTypeObject *get_python_panel_item_type(void) { static PyMethodDef py_panel_item_methods[] = { { - "dock", (PyCFunction)py_panel_item_dock, + "dock", py_panel_item_dock, METH_NOARGS, "dock($self, /)\n--\n\nDisplay the panel item in the right place." }, |