Gtk.FileFilter.prototype.filter
function filter(filter_info:Gtk.FileFilterInfo):Boolean { // Gjs wrapper for gtk_file_filter_filter() }
Tests whether a file should be displayed according to filter. The Gtk.FileFilterInfo structure filter_info should include the fields returned from Gtk.get_needed.
This function will not typically be used by applications; it is intended principally for use in the implementation of Gtk.FileChooser.
Since 2.4
- filter_info
a Gtk.FileFilterInfo structure containing information about a file.
- Returns
true if the file should be displayed