Package: gtk

Function gtk:file-filter-new

Lambda List

gtk:file-filter-new ()

Return Value

The new gtk:file-filter object.

Details

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

Examples

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

See also

2024-8-21