From a9cdbf0fb54b66da4b37445414c2e86c232b336f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 7 Apr 2005 13:36:48 +0000 Subject: [PATCH] Add a hint about hiding expanders. 2005-04-07 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add a hint about hiding expanders. --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-8 | 3 +++ docs/reference/ChangeLog | 3 +++ docs/reference/gtk/question_index.sgml | 13 +++++++++++-- gtk/gtktreeview.c | 9 ++++++--- 6 files changed, 29 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7946d52721..0eb9670405 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-04-07 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add + a hint about hiding expanders. + * gtk/updateiconcache.c (is_cache_up_to_date): Return TRUE if the cache is newer than the directory. (#172852, Jacob Kroon) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 7946d52721..0eb9670405 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-04-07 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add + a hint about hiding expanders. + * gtk/updateiconcache.c (is_cache_up_to_date): Return TRUE if the cache is newer than the directory. (#172852, Jacob Kroon) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 7946d52721..0eb9670405 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2005-04-07 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_expander_column): Add + a hint about hiding expanders. + * gtk/updateiconcache.c (is_cache_up_to_date): Return TRUE if the cache is newer than the directory. (#172852, Jacob Kroon) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 58737a3a71..f76dfd2dcb 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,5 +1,8 @@ 2005-04-07 Matthias Clasen + * gtk/question_index.sgml: Add a question about hiding + tree view expanders. + * gtk/tmpl/gtkradiobutton.sgml: Add a sentence about toggling. (#159382, Worik Stanton) diff --git a/docs/reference/gtk/question_index.sgml b/docs/reference/gtk/question_index.sgml index d062c4e36c..2456e03ce1 100644 --- a/docs/reference/gtk/question_index.sgml +++ b/docs/reference/gtk/question_index.sgml @@ -965,10 +965,19 @@ set_up_new_columns (GtkTreeView *myview) + + +How do I hide the expander arrows in my tree view ? + + + +Set the expander-column property of the tree view to a hidden column. +See gtk_tree_view_set_expander_column() and gtk_tree_view_column_set_visible(). + + + - - diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index f037f28bf1..b0ee48f1c8 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -10058,9 +10058,12 @@ gtk_tree_view_move_column_after (GtkTreeView *tree_view, * @tree_view: A #GtkTreeView * @column: %NULL, or the column to draw the expander arrow at. * - * Sets the column to draw the expander arrow at. It must be in @tree_view. If - * @column is %NULL, then the expander arrow is always at the first visible - * column. + * Sets the column to draw the expander arrow at. It must be in @tree_view. + * If @column is %NULL, then the expander arrow is always at the first + * visible column. + * + * If you do not want expander arrow to appear in your tree, set the + * expander column to a hidden column. **/ void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,