From cc7ec539c4bd0e55cf9dc156c769e306b93b419e Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 30 Aug 2009 11:37:28 +0000 Subject: Quickly fixed a bug in binary view lookup. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@108 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/editor.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fadf8f6..a21bd1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 09-08-30 Cyrille Bagard + * src/editor.c: + Quickly fix a bug in binary view lookup. + +09-08-30 Cyrille Bagard + * 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); -- cgit v0.11.2-87-g4458