summaryrefslogtreecommitdiff
path: root/src/gui/panels/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/strings.c')
-rw-r--r--src/gui/panels/strings.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c
index a50eeae..dacd14c 100644
--- a/src/gui/panels/strings.c
+++ b/src/gui/panels/strings.c
@@ -656,6 +656,9 @@ static void change_strings_panel_current_binary(GStringsPanel *panel, GLoadedBin
{
GtkBuilder *builder; /* Constructeur utilisé */
GtkListStore *store; /* Modèle de gestion */
+ GtkTreeView *treeview; /* Affichage de la liste */
+ GtkTreeViewColumn *column; /* Colonne de la liste */
+ GArchProcessor *proc; /* Architecture du binaire */
/* Basculement du binaire utilisé */
@@ -678,8 +681,20 @@ static void change_strings_panel_current_binary(GStringsPanel *panel, GLoadedBin
/* Si le panneau actif représente un binaire, actualisation de l'affichage */
if (binary != NULL)
+ {
+ treeview = GTK_TREE_VIEW(gtk_builder_get_object(builder, "treeview"));
+ column = gtk_tree_view_get_column(treeview, 1);
+
+ proc = g_loaded_binary_get_processor(binary);
+
+ gtk_tree_view_column_set_visible(column, g_arch_processor_has_virtual_space(proc));
+
+ g_object_unref(G_OBJECT(proc));
+
run_panel_update(G_UPDATABLE_PANEL(panel), PUI_0);
+ }
+
}