summaryrefslogtreecommitdiff
path: root/src/panel/panels.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-06-08 12:46:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-06-08 12:46:23 (GMT)
commitfc8324b66dee0abf0a5e5e3cc570e1aed96b80c8 (patch)
tree04b9220e34b8bdc3449cd73e54a32c5037be5f0c /src/panel/panels.c
parentdd75712aac8f70d18f07787d5d484d426600edeb (diff)
Refreshed the panel dealing with found symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@72 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/panel/panels.c')
-rw-r--r--src/panel/panels.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panel/panels.c b/src/panel/panels.c
index eae6ba3..39adc10 100644
--- a/src/panel/panels.c
+++ b/src/panel/panels.c
@@ -27,6 +27,7 @@
#include "log.h"
#include "registers.h"
+#include "symbols.h"
@@ -36,7 +37,7 @@ static GtkWidget *panel_list[PNT_COUNT];
/******************************************************************************
* *
-* Paramètres : - *
+* Paramètres : ref = espace de référencements global. *
* *
* Description : Procède au chargement de tous les panneaux. *
* *
@@ -46,10 +47,11 @@ static GtkWidget *panel_list[PNT_COUNT];
* *
******************************************************************************/
-void init_panels(void)
+void init_panels(GObject *ref)
{
panel_list[PNT_LOG] = build_log_panel();
panel_list[PNT_REGISTERS] = build_registers_panel();
+ panel_list[PNT_SYMBOLS] = build_symbols_panel(ref);
}
@@ -68,6 +70,6 @@ void init_panels(void)
GtkWidget *get_panel(PanelType id)
{
- return panel_list[id];
+ return (id < PNT_COUNT ? panel_list[id] : NULL);
}