diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-10 20:45:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-10 20:45:27 (GMT) |
commit | 7c2129872cecdc185843ea0af81d0858ed8e7b90 (patch) | |
tree | d4f14b8fe43b98498bb1d60fdff35f02feedff6a | |
parent | eca08119377ce38232581d444f48e28e0d02692b (diff) |
Hidden strings virtual addresses if the architecture has none.
-rw-r--r-- | src/gui/panels/strings.c | 15 |
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); + } + } |