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/gui | |
parent | 5d09d85a5e606e5ac458abd37e72b73ce52541cb (diff) |
Simplified the code by using existing helpers.h
Diffstat (limited to 'plugins/pychrysalide/gui')
-rw-r--r-- | plugins/pychrysalide/gui/panel.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/pychrysalide/gui/panel.c b/plugins/pychrysalide/gui/panel.c index 4f00ee3..fd31ef8 100644 --- a/plugins/pychrysalide/gui/panel.c +++ b/plugins/pychrysalide/gui/panel.c @@ -191,7 +191,6 @@ static int py_panel_item_init(PyObject *self, PyObject *args, PyObject *kwds) int startup; /* Recommandation au démarrage */ const char *path; /* Placement à l'affichage */ int ret; /* Bilan de lecture des args. */ - PyObject *new_kwds; /* Nouveau dictionnaire épuré */ GPanelItem *panel; /* Panneau à manipuler */ GEditorItem *item; /* Version basique d'instance */ @@ -239,12 +238,7 @@ static int py_panel_item_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 */ |