summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/panels/errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c
index a529314..161d1ab 100644
--- a/src/gui/panels/errors.c
+++ b/src/gui/panels/errors.c
@@ -1139,6 +1139,8 @@ static void g_error_panel_conclude(GErrorPanel *panel, unsigned int uid, error_u
{
GtkBuilder *builder; /* Constructeur utilisé */
GtkTreeView *treeview; /* Arborescence graphique */
+ GArchProcessor *proc; /* Architecture du binaire */
+ GtkTreeViewColumn *virt_col; /* Colonne des espaces virtuels*/
GtkTreeModel *model; /* Source de données associée */
if (g_atomic_int_get(&G_PANEL_ITEM(panel)->switched) > 1)
@@ -1157,6 +1159,14 @@ static void g_error_panel_conclude(GErrorPanel *panel, unsigned int uid, error_u
treeview = GTK_TREE_VIEW(gtk_builder_get_object(builder, "treeview"));
+ proc = g_loaded_binary_get_processor(panel->binary);
+
+ virt_col = gtk_tree_view_get_column(treeview, 1);
+
+ gtk_tree_view_column_set_visible(virt_col, g_arch_processor_has_virtual_space(proc));
+
+ g_object_unref(G_OBJECT(proc));
+
model = GTK_TREE_MODEL(gtk_builder_get_object(builder, "filter"));
g_object_ref(G_OBJECT(model));