summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-08-30 11:37:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-08-30 11:37:28 (GMT)
commitcc7ec539c4bd0e55cf9dc156c769e306b93b419e (patch)
treeb1a5dcebf726d9bb1fc62577dd44c7b9f7c76605 /src
parentac447bc36e65b91f97434cf2613ccb1e768267e0 (diff)
Quickly fixed a bug in binary view lookup.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@108 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/editor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/editor.c b/src/editor.c
index 3830e4c..c026426 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -761,6 +761,7 @@ void mcb_view_change_support(GtkRadioMenuItem *menuitem, GObject *ref)
GtkBinView *binview; /* Afficheur effectif de code */
GtkWidget *panel; /* Nouveau support à utiliser */
GtkDockPanel *dpanel; /* Support de panneaux */
+ char *title; /* Titre associé au binaire */
GtkDockItem *ditem; /* Panneau avec ses infos. */
/* On ne traite qu'une seule fois ! */
@@ -780,7 +781,9 @@ void mcb_view_change_support(GtkRadioMenuItem *menuitem, GObject *ref)
g_object_set_data(ref, "binview", binview);
dpanel = GTK_DOCK_PANEL(g_object_get_data(ref, "binpanel"));
- ditem = gtk_dock_panel_item_from_name(dpanel, g_openida_binary_to_string(binary));
+
+ title = g_openida_binary_to_string(binary);
+ ditem = gtk_dock_panel_item_from_name(dpanel, strrchr(title, '/') + 1);
gtk_dock_panel_replace_item_content(dpanel, ditem, panel);