diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-03-09 12:55:20 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-03-09 12:55:20 (GMT) |
commit | f8f804cf7ff9a62404b843cf303c762101572784 (patch) | |
tree | c35edc5dc8fb5ded9cc8d975d12a1eac2c3e330a /plugins | |
parent | 235b34006d734d55333a182ffd8bbe7fbf8f54bc (diff) |
Reorganized the whole code dealing with dockable panels.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/pychrysa/gui/panels/panel.c | 11 |
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; |