diff options
Diffstat (limited to 'src/gui/panels')
-rw-r--r-- | src/gui/panels/bintree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/panels/bintree.c b/src/gui/panels/bintree.c index 220a31d..a949b0d 100644 --- a/src/gui/panels/bintree.c +++ b/src/gui/panels/bintree.c @@ -688,6 +688,7 @@ static void reload_portions_for_new_tree_view(const GBintreePanel *panel, GtkSta GBinPortion *portions; /* Couche première de portions */ size_t count; /* Compteur de portions */ GtkTreeIter top; /* Racine de l'arborescence */ + char *desc; /* Description de contenu */ gint max_depth; /* Profondeur maximale */ GtkSpinButton *depth_spin; /* Bouton de variation */ GtkTreeView *treeview; /* Arborescence constituée */ @@ -708,11 +709,15 @@ static void reload_portions_for_new_tree_view(const GBintreePanel *panel, GtkSta gtk_tree_store_append(store, &top, NULL); + desc = g_loaded_content_describe(G_LOADED_CONTENT(panel->binary), false); + gtk_tree_store_set(store, &top, BTC_ICON, NULL, - BTC_CAPTION, g_loaded_binary_get_name(panel->binary, false), + BTC_CAPTION, desc, -1); + free(desc); + data->panel = panel; data->top = ⊤ data->status = status; |