]> Pileus Git - ~andy/gtk/commitdiff
Only update the virtual root if the child path is an ancestor of the
authorKristian Rietveld <kris@imendio.com>
Fri, 17 Feb 2006 15:00:47 +0000 (15:00 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Fri, 17 Feb 2006 15:00:47 +0000 (15:00 +0000)
2006-02-17  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
Only update the virtual root if the child path is an ancestor
of the virtual root.  (Patch from Markku Vire).

ChangeLog
ChangeLog.pre-2-10
gtk/gtktreemodelfilter.c

index 33d2bd0b8e8ad632f3a0e2d3b75cf9238c0f9383..9416ab87fafdc0c882a50766dd94e0968cbdc737 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-17  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
+       Only update the virtual root if the child path is an ancestor
+       of the virtual root.  (Patch from Markku Vire).
+
 2006-02-16  Federico Mena Quintero  <federico@novell.com>
 
        * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
index 33d2bd0b8e8ad632f3a0e2d3b75cf9238c0f9383..9416ab87fafdc0c882a50766dd94e0968cbdc737 100644 (file)
@@ -1,3 +1,9 @@
+2006-02-17  Kristian Rietveld  <kris@imendio.com>
+
+       * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
+       Only update the virtual root if the child path is an ancestor
+       of the virtual root.  (Patch from Markku Vire).
+
 2006-02-16  Federico Mena Quintero  <federico@novell.com>
 
        * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_map): Call
index d34b3269b849fdbb21d61f731d76164ebd8e8927..de08f80b31af6c13e8c068eba511fa6e8acbdf95 100644 (file)
@@ -1940,8 +1940,7 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
 
       /* virtual root anchor reordering */
       if (filter->priv->virtual_root &&
-          gtk_tree_path_get_depth (c_path) <
-          gtk_tree_path_get_depth (filter->priv->virtual_root))
+         gtk_tree_path_is_ancestor (c_path, filter->priv->virtual_root))
         {
           gint new_pos = -1;
           gint length;