[gtk+] treemodelfilter: Don't unref deleted rows



commit 754bf5e3d8e969027de23d557fb84860907c6e01
Author: Benjamin Otte <otte redhat com>
Date:   Mon Mar 19 02:24:03 2012 +0100

    treemodelfilter: Don't unref deleted rows
    
    When we're fudging with child nodes of a deleted node, we don't want to
    have them delete their parent - which is the deleted row.

 gtk/gtktreemodelfilter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index a621458..2e7d218 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -2640,7 +2640,7 @@ gtk_tree_model_filter_row_deleted (GtkTreeModel *c_model,
 
       if (elt->children)
         gtk_tree_model_filter_free_level (filter, elt->children,
-                                          FALSE, TRUE, FALSE);
+                                          FALSE, FALSE, FALSE);
 
       /* remove the row */
       if (elt->visible_siter)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]