add_filter


Description:

[ Version ( since = "2.4" ) ]
public void add_filter (owned FileFilter filter)

Adds filter to the list of filters that the user can select between.

When a filter is selected, only files that are passed by that filter are displayed.

Note that the this takes ownership of the filter, so you have to ref and sink it if you want to keep a reference.

Parameters:

this

a FileChooser

filter

a FileFilter