diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-03-25 12:36:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-03-25 12:36:16 (GMT) |
commit | a174ee784f5d9e554ed09181b8e6d8c0205f8ef5 (patch) | |
tree | f5ccfb4c41fcb1f237bc285e8e71bc188b7c8b57 /src/gui/panels/panel.c | |
parent | bbad297e902022ecac9fab21c01dc109560db8eb (diff) |
Scrolled to the selected symbol.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@241 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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); } |