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.
This commit is contained in:
Kristian Rietveld 2011-11-09 08:44:28 +01:00
parent 7e22a5350c
commit 91ae19768e

View File

@ -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;