diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-08-30 11:37:28 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-08-30 11:37:28 (GMT) |
commit | cc7ec539c4bd0e55cf9dc156c769e306b93b419e (patch) | |
tree | b1a5dcebf726d9bb1fc62577dd44c7b9f7c76605 | |
parent | ac447bc36e65b91f97434cf2613ccb1e768267e0 (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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/editor.c | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,10 @@ 09-08-30 Cyrille Bagard <nocbos@gmail.com> + * src/editor.c: + Quickly fix a bug in binary view lookup. + +09-08-30 Cyrille Bagard <nocbos@gmail.com> + * configure.ac: Enable AM_SILENT_RULES and disable GTK_DISABLE_DEPRECATED. 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); |