[gtksourceview/wip/chergert/gsv-gtk4: 227/259] completion: track recent GTK changes




commit 93d1575e91cc40fe8db36255e5d547b7868c5ca9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 8 14:38:14 2020 -0700

    completion: track recent GTK changes

 gtksourceview/completion-providers/words/gtksourcecompletionwords.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index d2068a62..419a7274 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -504,7 +504,7 @@ gtk_source_completion_words_refilter (GtkSourceCompletionProvider *provider,
 {
        GtkFilterListModel *filter_model;
        GtkExpression *expression;
-       GtkFilter *filter;
+       GtkStringFilter *filter;
        gchar *word;
 
        g_assert (GTK_SOURCE_IS_COMPLETION_PROVIDER (provider));
@@ -528,7 +528,8 @@ gtk_source_completion_words_refilter (GtkSourceCompletionProvider *provider,
        expression = gtk_property_expression_new (GTK_SOURCE_TYPE_COMPLETION_WORDS_PROPOSAL, NULL, "word");
        filter = gtk_string_filter_new (g_steal_pointer (&expression));
        gtk_string_filter_set_search (GTK_STRING_FILTER (filter), word);
-       filter_model = gtk_filter_list_model_new (g_object_ref (model), g_steal_pointer (&filter));
+       filter_model = gtk_filter_list_model_new (g_object_ref (model),
+                                                 GTK_FILTER (g_steal_pointer (&filter)));
        gtk_filter_list_model_set_incremental (filter_model, TRUE);
        gtk_source_completion_context_set_proposals_for_provider (context, provider, G_LIST_MODEL 
(filter_model));
 


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