[gtk/file-filter2: 3/5] Stop using gtk_file_filter_filter



commit 76201ed6120ff61b6d94cc8ff9f7afe500983578
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jul 4 11:05:43 2020 -0400

    Stop using gtk_file_filter_filter
    
    Make all users of GtkFileFilter use it via the
    GtkFilter api. This is in preparation for dropping
    gtk_filter_filter_filter.

 gtk/gtkfilechooserentry.c | 2 +-
 gtk/gtkfilesystemmodel.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index f4871344d3..28bba7de32 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -209,7 +209,7 @@ match_func (GtkEntryCompletion *compl,
       if (!g_file_info_has_attribute (info, "standard::file"))
         g_file_info_set_attribute_object (info, "standard::file", G_OBJECT (file));
 
-      return gtk_file_filter_filter (chooser_entry->current_filter, info);
+      return gtk_filter_match (GTK_FILTER (chooser_entry->current_filter), info);
     }
 
   return TRUE;
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index b816c464e9..66454f4255 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -385,7 +385,7 @@ node_should_be_filtered_out (GtkFileSystemModel *model, guint id)
   if (!g_file_info_has_attribute (node->info, "standard::file"))
     g_file_info_set_attribute_object (node->info, "standard::file", G_OBJECT (node->file));
 
-  return !gtk_file_filter_filter (model->filter, node->info);
+  return !gtk_filter_match (GTK_FILTER (model->filter), node->info);
 }
 
 static gboolean


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