[gtk+/gtk-3-2] Bug 661997 - Gtk crashes when changing the TreeView model while ...
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] Bug 661997 - Gtk crashes when changing the TreeView model while ...
- Date: Wed, 9 Nov 2011 07:47:55 +0000 (UTC)
commit 0f6ec6e76df4c770adcacede07e2a5b8c5d78a38
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.
(cherry picked from commit 91ae19768e715f71d7944fc000358dd6bdbe0ea3)
gtk/gtktreeview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 43c3d60..8c5d036 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11319,6 +11319,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]