diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-04 11:05:43 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-05 15:10:18 -0400 |
commit | 35988d659d5c1c45bd9d51dc76d09f7890b4d03d (patch) | |
tree | 2ccdfe1195300c28fda99ef9d8ac0706d2f0b8ba | |
parent | be3449b3cef30b3e7476b50cb95ce8e4c1283296 (diff) | |
download | gtk+-35988d659d5c1c45bd9d51dc76d09f7890b4d03d.tar.gz |
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.
-rw-r--r-- | gtk/gtkfilechooserentry.c | 2 | ||||
-rw-r--r-- | 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 |