Gtk.RecentFilter.new
function new():Gtk.RecentFilter { // Gjs wrapper for gtk_recent_filter_new() }
Creates a new Gtk.RecentFilter with no rules added to it. Such filter does not accept any recently used resources, so is not particularly useful until you add rules with Gtk.RecentFilter.prototype.add_pattern, Gtk.RecentFilter.prototype.add_mime_type, Gtk.RecentFilter.prototype.add_application, Gtk.RecentFilter.prototype.add_age. To create a filter that accepts any recently used resource, use: |[ GtkRecentFilter *filter = gtk_recent_filter_new (); gtk_recent_filter_add_pattern (filter, "*"); ]|
Since 2.10
- Returns
a new Gtk.RecentFilter