-
public void add_custom (FileFilterFlags needed, owned FileFilterFunc func)
Adds rule to a filter that allows files based on a custom callback function. The bitfield needed
which is passed in provides information about what sorts of information that the filter function needs; this allows GTK+ to
avoid retrieving expensive information when it isn't needed by the filter.
-
public void add_mime_type (string mime_type)
Adds a rule allowing a given mime type to filter.
-
public void add_pattern (string pattern)
Adds a rule allowing a shell style glob to a filter.
-
public void add_pixbuf_formats ()
Adds a rule allowing image files in the formats supported by GdkPixbuf.
-
public bool filter (FileFilterInfo filter_info)
Tests whether a file should be displayed according to filter. The
FileFilterInfo structure filter_info should include the fields
returned from get_needed.
-
public unowned string get_name ()
Gets the human-readable name for the filter. See
set_name.
-
public FileFilterFlags get_needed ()
Gets the fields that need to be filled in for the structure passed to
filter
-
public void set_name (string name)
Sets the human-readable name of the filter; this is the string that will be displayed in the file
selector user interface if there is a selectable list of filters.