void gtk_file_filter_add_custom ( GtkFileFilter* filter, GtkFileFilterFlags needed, GtkFileFilterFunc func, gpointer data, GDestroyNotify notify )
Adds rule to a filter that allows files based on a custom callback
function. The bitfield
needed which is passed in provides information
about what sorts of information that the filter function needs;
this allows GTK+ to avoid retrieving expensive information when
it isn’t needed by the filter.
Bitfield of flags indicating the information that the custom filter function needs.
Callback function; if the function returns
TRUE, then the file will be displayed.
Data to pass to
The argument can be
The data is owned by the caller of the function.
Function to call to free
datawhen it is no longer needed.