GtkFileFilter::add_pattern

void add_pattern(string pattern);

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");
     
     
will list allow the file filter to display only those files that end with conf.