diff options
Diffstat (limited to 'src/gui/panels/panel.c')
-rw-r--r-- | src/gui/panels/panel.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c index 584ec09..a12c675 100644 --- a/src/gui/panels/panel.c +++ b/src/gui/panels/panel.c @@ -129,12 +129,15 @@ static void g_panel_item_init(GPanelItem *item) * * ******************************************************************************/ -void g_panel_item_init_ext(GPanelItem *item, const char *name, const char *lname, GtkWidget *widget, const char *path) +void g_panel_item_init_ext(GPanelItem *item, GObject *ref, const char *name, const char *lname, GtkWidget *widget, const char *path) { GEditorItem *parent; /* Autre version de l'élément */ parent = G_EDITOR_ITEM(item); + g_object_ref(ref); + parent->ref = ref; + parent->name = name; item->lname = lname; @@ -171,7 +174,7 @@ GEditorItem *g_panel_item_new(const char *name, const char *lname, GtkWidget *wi result = g_object_new(G_TYPE_PANEL_ITEM, NULL); - g_panel_item_init_ext(result, name, lname, widget, path); + g_panel_item_init_ext(result, NULL/* FIXME */, name, lname, widget, path); return G_EDITOR_ITEM(result); @@ -647,7 +650,7 @@ GtkWidget *init_panels2(GCallback handler, gpointer data) /****************************************************************************** * * -* Paramètres : - * +* Paramètres : ref = espace de référencement global. * * * * Description : Charge les principaux panneaux de l'éditeur. * * * @@ -657,14 +660,14 @@ GtkWidget *init_panels2(GCallback handler, gpointer data) * * ******************************************************************************/ -void load_main_panels(void) +void load_main_panels(GObject *ref) { GPanelItem *item; /* Panneau de base à charger */ item = create_log_panel(); g_panel_item_dock(item); - item = create_symbols_panel(); + item = create_symbols_panel(ref); g_panel_item_dock(item); } |