From 7c2129872cecdc185843ea0af81d0858ed8e7b90 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Tue, 10 Jul 2018 22:45:27 +0200
Subject: Hidden strings virtual addresses if the architecture has none.

---
 src/gui/panels/strings.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

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);
 
+    }
+
 }
 
 
-- 
cgit v0.11.2-87-g4458