summaryrefslogtreecommitdiff
path: root/src/procmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/procmap.c')
-rw-r--r--src/procmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/procmap.c b/src/procmap.c
index 72853a5..0e6af6e 100644
--- a/src/procmap.c
+++ b/src/procmap.c
@@ -98,6 +98,7 @@ procmap_init (Procmap *self)
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("Start",
renderer, "text", PROCMAP_START, NULL);
+ gtk_tree_view_column_set_sort_column_id (column, PROCMAP_START);
gtk_tree_view_append_column (&self->tv, column);
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("End",
@@ -114,6 +115,7 @@ procmap_init (Procmap *self)
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column), renderer,
cell_layout_pretty_print_uint, GUINT_TO_POINTER (PROCMAP_SIZE),
NULL);
+ gtk_tree_view_column_set_sort_column_id (column, PROCMAP_SIZE);
gtk_tree_view_append_column (&self->tv, column);
renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("RSS",
@@ -121,14 +123,16 @@ procmap_init (Procmap *self)
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column), renderer,
cell_layout_pretty_print_uint, GUINT_TO_POINTER (PROCMAP_RSS),
NULL);
+ gtk_tree_view_column_set_sort_column_id (column, PROCMAP_RSS);
gtk_tree_view_append_column (&self->tv, column);
renderer = gtk_cell_renderer_text_new ();
- column = gtk_tree_view_column_new_with_attributes ("Private Dirty",
+ column = gtk_tree_view_column_new_with_attributes ("Dirty",
renderer, NULL);
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column), renderer,
cell_layout_pretty_print_uint, GUINT_TO_POINTER (PROCMAP_PRIVATE_DIRTY),
NULL);
+ gtk_tree_view_column_set_sort_column_id (column, PROCMAP_PRIVATE_DIRTY);
gtk_tree_view_append_column (&self->tv, column);
gtk_tree_view_set_grid_lines (&self->tv, GTK_TREE_VIEW_GRID_LINES_VERTICAL);