Gtk.RecentChooser.prototype.set_filter

function set_filter(filter:Gtk.RecentFilter):void {
    // Gjs wrapper for gtk_recent_chooser_set_filter()
}

Sets filter as the current Gtk.RecentFilter object used by chooser to affect the displayed recently used resources.

Since 2.10

filter

a Gtk.RecentFilter