Package: gtk

Function gtk:file-filter-new

Lambda List

gtk:file-filter-new ()

Return Value

A new gtk:file-filter object.

Details

Creates a new file filter with no rules added to it. Such a filter does not accept any files, so is not particularly useful until you add rules with the gtk:file-filter-add-mime-type, gtk:file-filter-add-pattern, or gtk:file-filter-add-custom functions.

Examples

To create a filter that accepts any file, use:
(let ((filter (gtk:file-filter-new)))
  (gtk:file-filter-add-pattern filter "*")
  ... )    
 

See also

2023-6-11