]> Pileus Git - ~andy/gtk/commitdiff
clean up selection when changing models.
authorJonathan Blandford <jrb@redhat.com>
Wed, 22 Aug 2001 23:05:07 +0000 (23:05 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Wed, 22 Aug 2001 23:05:07 +0000 (23:05 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreeview.c

index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index c7f4606d7ceee0e62258d12989d952256f18b689..84eb13d4b03fd13b54531034afe1e076e9c42d96 100644 (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.
index 3a1bc0e8d2e508db1fb1ee9a6df53e17f0e280a8..674bc8f31b30dcd8180e4adbcd3da5420c0aacc1 100644 (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;
     }