Last updated: Sun, 12 May 2013 view this page in English
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.
User Contributed Notes gtk.gtkfilefilter.method.add_pattern.php
There are no user contributed notes for this page.