summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysa/gui/panels/panel.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/pychrysa/gui/panels/panel.c b/plugins/pychrysa/gui/panels/panel.c
index 8046c0e..1246717 100644
--- a/plugins/pychrysa/gui/panels/panel.c
+++ b/plugins/pychrysa/gui/panels/panel.c
@@ -28,6 +28,7 @@
#include <pygobject.h>
+#include <gui/core/panels.h>
#include <gui/panels/panel.h>
@@ -70,14 +71,17 @@ static int py_panel_item_init(PyObject *self, PyObject *args, PyObject *kwds)
PyGObject *widget; /* Composant visuel du panneau */
const char *path; /* Placement à l'affichage */
int ret; /* Bilan de lecture des args. */
- GEditorItem *item; /* Elément de l'éditeur */
+ GPanelItem *item; /* Elément de l'éditeur */
ret = PyArg_ParseTuple(args, "kssOs", &personality, &name, &lname, &widget, &path);
if (!ret) return -1;
- item = g_panel_item_new(personality, get_internal_ref(), name, lname,
+ item = g_panel_item_new(personality, name, lname,
GTK_WIDGET(pygobject_get(widget)), path);
+ /* FIXME ? Est-ce à l'utilisateur de s'enregistrer ? */
+ register_panel_item(item, get_internal_ref());
+
/* Enregistrement auprès de PyGObject */
((PyGObject *)self)->obj = G_OBJECT(item);
@@ -108,7 +112,8 @@ static PyObject *py_panel_item_dock(PyObject *self, PyObject *args)
item = G_PANEL_ITEM(pygobject_get(self));
- g_panel_item_dock(item);
+ /* FIXME : les panneaux sont incrustés d'office ! */
+ //g_panel_item_dock(item);
Py_RETURN_NONE;