[devhelp] KeywordModel: GtkTreeIter's do not persist



commit 71977efcf403e1270bc5597e5374732dc16870af
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jan 20 20:57:19 2018 +0100

    KeywordModel: GtkTreeIter's do not persist
    
    For obvious reasons: the GList inside the GQueue changes each time the
    filter() function is called.

 src/dh-keyword-model.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-keyword-model.c b/src/dh-keyword-model.c
index 9fe3eb0..b2257e1 100644
--- a/src/dh-keyword-model.c
+++ b/src/dh-keyword-model.c
@@ -115,8 +115,7 @@ dh_keyword_model_init (DhKeywordModel *model)
 static GtkTreeModelFlags
 dh_keyword_model_get_flags (GtkTreeModel *tree_model)
 {
-        /* FIXME: check if GTK_TREE_MODEL_ITERS_PERSIST is correct. */
-        return GTK_TREE_MODEL_ITERS_PERSIST | GTK_TREE_MODEL_LIST_ONLY;
+        return GTK_TREE_MODEL_LIST_ONLY;
 }
 
 static gint


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