clean up selection when changing models.

Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
	when changing models.
This commit is contained in:
Jonathan Blandford 2001-08-22 23:05:07 +00:00 committed by Jonathan Blandford
parent 953d4b248e
commit 3485237744
8 changed files with 42 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -1,3 +1,8 @@
Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
when changing models.
Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c: Fix selection. I think it's all dandy now.

View File

@ -6201,11 +6201,13 @@ gtk_tree_view_set_model (GtkTreeView *tree_view,
_gtk_rbtree_free (tree_view->priv->tree);
tree_view->priv->tree = NULL;
}
if (tree_view->priv->drag_dest_row)
{
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->drag_dest_row);
tree_view->priv->drag_dest_row = NULL;
gtk_tree_row_reference_free (tree_view->priv->cursor);
tree_view->priv->cursor = NULL;
gtk_tree_row_reference_free (tree_view->priv->anchor);
tree_view->priv->anchor = NULL;
g_object_unref (tree_view->priv->model);
tree_view->priv->search_column = -1;
}