From ddff4ea49f0a7f5b1223a8902354f2f6c360c286 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Mon, 28 Jan 2002 20:28:52 +0000 Subject: [PATCH] When setting the GtkTreeView's model, set prelight_node, prelight_tree, 2002-01-28 Jon Trowbridge * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the GtkTreeView's model, set prelight_node, prelight_tree, button_pressed_node and button_pressed_tree to NULL. (#69603) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktreeview.c | 6 ++++++ 8 files changed, 48 insertions(+) diff --git a/ChangeLog b/ChangeLog index f9680bec3b..b470400dd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index f9680bec3b..b470400dd0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2002-01-28 Jon Trowbridge + + * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the + GtkTreeView's model, set prelight_node, prelight_tree, + button_pressed_node and button_pressed_tree to NULL. (#69603) + 2002-01-28 Bill Haneman * gtk/gtkstyle.c: diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 3a66180282..9848677c37 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -6728,6 +6728,12 @@ gtk_tree_view_set_model (GtkTreeView *tree_view, _gtk_rbtree_free (tree_view->priv->tree); tree_view->priv->tree = NULL; } + + tree_view->priv->prelight_node = NULL; + tree_view->priv->prelight_tree = NULL; + tree_view->priv->button_pressed_node = NULL; + tree_view->priv->button_pressed_tree = NULL; + gtk_tree_row_reference_free (tree_view->priv->drag_dest_row); tree_view->priv->drag_dest_row = NULL; gtk_tree_row_reference_free (tree_view->priv->cursor);