setDefaultFilter

open fun setDefaultFilter(filter: FileFilter? = null)

Sets the filter that will be selected by default in the file chooser dialog.

If set to null, the first item in property@Gtk.FileDialog:filters will be used as the default filter. If that list is empty, the dialog will be unfiltered.

Since

4.10

Parameters

filter

a GtkFileFilter