FileFilter


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.4" ) ]
public FileFilter ()

Creates a new FileFilter with no rules added to it.

Such a filter doesn’t accept any files, so is not particularly useful until you add rules with add_mime_type, add_pattern, or add_custom. To create a filter that accepts any file, use:

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

Returns:

a new FileFilter




2022 vala-language.org