FileFilter

constructor()

Creates a new GtkFileFilter with no rules added to it.

Such a filter doesn’t accept any files, so is not particularly useful until you add rules with method@Gtk.FileFilter.add_mime_type, method@Gtk.FileFilter.add_pattern, method@Gtk.FileFilter.add_suffix or method@Gtk.FileFilter.add_pixbuf_formats.

To create a filter that accepts any file, use:

GtkFileFilter *filter = gtk_file_filter_new ();
gtk_file_filter_add_pattern (filter, "*");

Return

a new GtkFileFilter


constructor(variant: <Error class: unknown class>)

Deserialize a file filter from a GVariant.

The variant must be in the format produced by method@Gtk.FileFilter.to_gvariant.

Return

a new GtkFileFilter object

Parameters

variant

an a{sv} GVariant


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)