diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-08-11 23:12:20 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-08-11 23:12:20 (GMT) |
commit | 184249f07fb32fb2449723f5f94ce221015231b7 (patch) | |
tree | dba90857104a96be5d1fd07d3051cda474cb3e3b /src/project.c | |
parent | 5cd25c4adfe0426520a51a76de3f77c77cfa4b8e (diff) |
Improved the loading of several binaries.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@106 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/project.c')
-rw-r--r-- | src/project.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/project.c b/src/project.c index 6824444..fd9d7ea 100644 --- a/src/project.c +++ b/src/project.c @@ -691,6 +691,7 @@ void display_new_binary_of_openida_project(GOpenidaBinary *binary, openida_proje size_t index; /* Indice du nouveau binaire */ GtkDockPanel *dpanel; /* Support de panneaux */ GtkWidget *view; /* Affichage du code binaire */ + char *title; /* Titre associé au binaire */ GtkDockItem *ditem; /* Panneau avec ses infos. */ GtkBinView *binview; /* Affichage à faire défiler */ @@ -704,7 +705,10 @@ void display_new_binary_of_openida_project(GOpenidaBinary *binary, openida_proje view = get_loaded_binary_view(project->binaries[index], BVW_BLOCK); - ditem = gtk_dock_item_new(g_openida_binary_to_string(binary), view); + title = g_openida_binary_to_string(binary); + + ditem = gtk_dock_item_new(strrchr(title, '/') + 1, view); + gtk_dock_item_set_desc(ditem, title); gtk_dock_panel_add_item(dpanel, ditem); |