diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-19 22:44:44 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-19 22:44:44 (GMT) |
commit | 5dd935b27a765177960bdfe4d2fcb296cbbd41da (patch) | |
tree | cbf871ec6a2c98a2171a4be716931b2275ef3148 /plugins/pychrysalide/plugin.c | |
parent | 5d09d85a5e606e5ac458abd37e72b73ce52541cb (diff) |
Simplified the code by using existing helpers.h
Diffstat (limited to 'plugins/pychrysalide/plugin.c')
-rw-r--r-- | plugins/pychrysalide/plugin.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/pychrysalide/plugin.c b/plugins/pychrysalide/plugin.c index 208c46a..3f3b56a 100644 --- a/plugins/pychrysalide/plugin.c +++ b/plugins/pychrysalide/plugin.c @@ -246,7 +246,6 @@ static void py_plugin_module_init_gclass(GPluginModuleClass *class, gpointer unu static int py_plugin_module_init(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *new_kwds; /* Nouveau dictionnaire épuré */ int ret; /* Bilan d'un appel */ GPluginModule *plugin; /* Greffon à manipuler */ plugin_interface *iface; /* Interface à constituer */ @@ -285,12 +284,7 @@ static int py_plugin_module_init(PyObject *self, PyObject *args, PyObject *kwds) /* Initialisation d'un objet GLib */ - new_kwds = PyDict_New(); - - ret = PyGObject_Type.tp_init(self, args, new_kwds); - - Py_DECREF(new_kwds); - + ret = forward_pygobjet_init(self); if (ret == -1) return -1; /* Eléments de base */ |