[gtksourceview] CompletionModel: set correct flag



commit 32dbb093225d6d6687cd5c285e5ed46a66880ae0
Author: SÃbastien Wilmet <sebastien wilmet gmail com>
Date:   Sun Apr 8 23:17:44 2012 +0200

    CompletionModel: set correct flag
    
    The model is not a tree, it's only a list.
    And iterators survive all signals, since it references a GList.

 gtksourceview/gtksourcecompletionmodel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionmodel.c b/gtksourceview/gtksourcecompletionmodel.c
index e82c192..06d4320 100644
--- a/gtksourceview/gtksourcecompletionmodel.c
+++ b/gtksourceview/gtksourcecompletionmodel.c
@@ -148,7 +148,7 @@ tree_model_get_flags (GtkTreeModel *tree_model)
 {
 	g_return_val_if_fail (GTK_SOURCE_IS_COMPLETION_MODEL (tree_model), 0);
 
-	return 0;
+	return GTK_TREE_MODEL_LIST_ONLY | GTK_TREE_MODEL_ITERS_PERSIST;
 }
 
 static gint



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