summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@canonical.com>2009-08-10 04:10:53 +0100
committerLucas Rocha <lucasr@gnome.org>2009-08-10 04:10:53 +0100
commit8e190dbb1f39eae31210f7d4c97a4c5ebb496907 (patch)
tree0e8a3ff8e7f7a9756e0a4462bf98024397b9d3b8 /src/tree.c
parent171e59e3eae4ff183d690c460f99eea788b70be8 (diff)
Bug 552971 - Add a hide-header option to list dialog
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index da2cf47..f0fc187 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -480,6 +480,9 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE);
+ if (tree_data->hide_header)
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree_view), FALSE);
+
if (tree_data->radiobox || tree_data->checkbox) {
if (tree_data->data && *tree_data->data)
zenity_tree_fill_entries (GTK_TREE_VIEW (tree_view), tree_data->data, n_columns, TRUE, tree_data->editable);