GtkFileFilter::filter
Call this method to test if a file passes the filter or not. When the fileinfo data match the filter rules, true is returned - otherwise the method returns false.
The fileinfo parameter consists of four elements; the first is the file name including path; the second the file URI. Third element is the "display name", the file name without path as displayed in file choosers. Fourth and last array element is the mime type of the file. Not every element is needed; use get_needed() to check which values have to be set. If a value is not needed, you should put null in it.