Gtk.RecentFilter.prototype.filter
function filter(filter_info:Gtk.RecentFilterInfo):Boolean { // Gjs wrapper for gtk_recent_filter_filter() }
Tests whether a file should be displayed according to filter. The Gtk.RecentFilterInfo 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.RecentChooser.
Since 2.10
- filter_info
a Gtk.RecentFilterInfo structure containing information about a recently used resource
- Returns
true if the file should be displayed