A RecentFilter can be used to restrict the files being shown in a
RecentChooser.
Files can be filtered based on their name (with add_pattern), on their
mime type (with add_mime_type), on the application that has registered them
(with add_application), or by a custom filter function (with
add_custom).
Filtering by mime type handles aliasing and subclassing of mime types; e.g. a filter for text/plain also matches a file with mime type
application/rtf, since application/rtf is a subclass of text/plain. Note that RecentFilter allows wildcards for
the subtype of a mime type, so you can e.g. filter for image/\*.
Normally, filters are used by adding them to a RecentChooser, see
add_filter, but it is also possible to manually use a filter on a
file with filter.
Recently used files are supported since GTK+ 2.10.
GtkRecentFilter as GtkBuildable
The GtkRecentFilter implementation of the GtkBuildable interface supports adding rules using the `<mime-types>`, `<patterns>`
and `<applications>` elements and listing the rules within. Specifying a `<mime-type>`, `<pattern>` or `<application
>` has the same effect as calling add_mime_type,
add_pattern or
add_application.
An example of a UI definition fragment specifying `GtkRecentFilter` rules:
Sets the human-readable name of the filter; this is the string that
will be displayed in the recently used resources selector user interface if there is a selectable list of filters.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Buildable