[gtk+] Unset expander_column when expander column is removed from tree view



commit 436855210ede712cb406d14f18e4cec5d97af701
Author: Kristian Rietveld <kris gtk org>
Date:   Mon Dec 28 21:34:17 2009 +0100

    Unset expander_column when expander column is removed from tree view

 gtk/gtktreeview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 949250f..17aed3f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11177,6 +11177,9 @@ gtk_tree_view_remove_column (GtkTreeView       *tree_view,
       tree_view->priv->edited_column = NULL;
     }
 
+  if (tree_view->priv->expander_column == column)
+    tree_view->priv->expander_column = NULL;
+
   g_signal_handlers_disconnect_by_func (column,
                                         G_CALLBACK (column_sizing_notify),
                                         tree_view);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]