Use the method when you want to restrict the files to be displayed on the basis of their names. The pattern that you pass as an argument should a shell style glob, that is, a minimalist regular expression that specifies what range of names you wish to match.
For example,
$x = new GtkFileFilter(); $x->add_pattern("*conf"); |