summaryrefslogtreecommitdiff
path: root/src/editor.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/editor.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/editor.c')
-rw-r--r--src/editor.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/editor.c b/src/editor.c
index ff1217b..7185e3f 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -43,7 +43,6 @@
#include "dlg_sections.h"
#include "pan_strings.h"
-#include "pan_symbols.h"
#include "analysis/binary.h"
#include "gtkext/easygtk.h"
#include "gtkext/gtkbinview.h"
@@ -233,7 +232,7 @@ int main(int argc, char **argv)
GtkWidget *create_editor(void)
{
GtkWidget *result; /* Fenêtre à renvoyer */
- GObject *ref; /* version de référence */
+ GObject *ref; /* Version de référence */
GtkWidget *menuboard; /* Barre de menus principale */
GtkWidget *menuitem; /* Elément de menu */
GtkWidget *menubar; /* Support pour éléments */
@@ -252,7 +251,6 @@ GtkWidget *create_editor(void)
GtkWidget *binview;
GtkWidget *panel;
- GtkWidget *_panel;
openida_project *project;
@@ -441,7 +439,7 @@ GtkWidget *create_editor(void)
gtk_paned_set_position (GTK_PANED (hpaned1), 600);
- init_panels();
+ init_panels(ref);
dpanel = gtk_dock_panel_new();
@@ -503,10 +501,8 @@ GtkWidget *create_editor(void)
gtk_paned_pack2(GTK_PANED(hpaned1), dpanel, TRUE, TRUE);
- panel = build_symbols_panel(G_OBJECT(result));
- _panel = panel;
- ditem = gtk_dock_item_new(_("Symbols"), panel);
+ ditem = gtk_dock_item_new(_("Symbols"), get_panel(PNT_SYMBOLS));
gtk_dock_panel_add_item(dpanel, ditem);
ditem = gtk_dock_item_new(_("Registers"), get_panel(PNT_REGISTERS));
@@ -1221,7 +1217,7 @@ void open_last_file(GObject *ref)
g_object_set_data(ref, "current_binary", binary);
-
+ reload_symbols_panel_content(get_panel(PNT_SYMBOLS), get_openida_binary_format(binary));
}