summaryrefslogtreecommitdiff
path: root/gtk/gtktreeselection.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2002-04-05 16:28:14 +0000
committerKristian Rietveld <kristian@src.gnome.org>2002-04-05 16:28:14 +0000
commit6d4655b01a60fdafee0ab4ea225e98f842659f78 (patch)
tree03f3b43819b7a799a6da4bd7d078e55a09cf0bb4 /gtk/gtktreeselection.c
parent8c114fa6a0a5db553a3b1ff1daca8e5ed3deffd8 (diff)
downloadgdk-pixbuf-6d4655b01a60fdafee0ab4ea225e98f842659f78.tar.gz
free anchor row reference after unselecting the selection (fixes #76272)
Fri Apr 5 18:28:56 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): free anchor row reference after unselecting the selection (fixes #76272) Fri Apr 5 18:27:48 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_real_expand_row): only return when we don't have to open all children (fixes #75736) Fri Apr 5 18:24:24 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear): unref cellrenderer after clearing the attributes of the renderer (fixes #75592)
Diffstat (limited to 'gtk/gtktreeselection.c')
-rw-r--r--gtk/gtktreeselection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c
index c93e37592..1be26116f 100644
--- a/gtk/gtktreeselection.c
+++ b/gtk/gtktreeselection.c
@@ -193,13 +193,15 @@ gtk_tree_selection_set_mode (GtkTreeSelection *selection,
if (type == GTK_SELECTION_NONE)
{
- gtk_tree_row_reference_free (selection->tree_view->priv->anchor);
/* We do this so that we unconditionally unset all rows
*/
tmp_func = selection->user_func;
selection->user_func = NULL;
gtk_tree_selection_unselect_all (selection);
selection->user_func = tmp_func;
+
+ gtk_tree_row_reference_free (selection->tree_view->priv->anchor);
+ selection->tree_view->priv->anchor = NULL;
}
else if (type == GTK_SELECTION_SINGLE ||
type == GTK_SELECTION_BROWSE)