aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2009-01-29 12:12:03 -0200
committerLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2009-01-29 12:12:03 -0200
commitcdb53048ce47dfa465c571f57c8a87f403a97233 (patch)
tree1ef2f7cbdfeaa887d2b29b64b3106f3c5083b705
parent65e9eae28344212b9ad4a59f536cdd76154401ca (diff)
Hide column headers by default
-rw-r--r--hardinfo2/shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index 90086103..420d690e 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -674,6 +674,8 @@ static gboolean reload_section(gpointer data)
/* if there was a selection, reselect it */
if (path) {
gtk_tree_selection_select_path(shell->info->selection, path);
+ gtk_tree_view_set_cursor(GTK_TREE_VIEW(shell->tree->view), path, NULL,
+ FALSE);
gtk_tree_path_free(path);
}
}
@@ -736,6 +738,9 @@ static void set_view_type(ShellViewType viewtype)
gtk_tree_view_column_set_visible(shell->info->col_progress, FALSE);
gtk_tree_view_column_set_visible(shell->info->col_value, TRUE);
+ /* turn off the column headers */
+ gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(shell->info->view), FALSE);
+
/* turn off the rules hint */
gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(shell->info->view), FALSE);