[gtk+] Bug 661997 - Gtk crashes when changing the TreeView model while ...



commit 91ae19768e715f71d7944fc000358dd6bdbe0ea3
Author: Kristian Rietveld <kris loopnest org>
Date:   Wed Nov 9 08:44:28 2011 +0100

    Bug 661997 - Gtk crashes when changing the TreeView model while ...
    
    Simply stopping rubber banding in gtk_tree_view_set_model() eliminates
    the crash.  Reported by Thomas Perl.

 gtk/gtktreeview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index d27e7e7..4ab8755 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11338,6 +11338,9 @@ gtk_tree_view_set_model (GtkTreeView  *tree_view,
       tree_view->priv->scroll_to_path = NULL;
     }
 
+  if (tree_view->priv->rubber_band_status)
+    gtk_tree_view_stop_rubber_band (tree_view);
+
   if (tree_view->priv->model)
     {
       GList *tmplist = tree_view->priv->columns;



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