add_custom
Description:
[ Version ( since = "2.10" ) ]
public void add_custom (RecentFilterFlags needed, owned RecentFilterFunc func)
public void add_custom (RecentFilterFlags needed, owned RecentFilterFunc func)
Adds a rule to a filter that allows resources 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.
Parameters:
this | |
needed |
bitfield of flags indicating the information that the custom filter function needs. |
func |
callback function; if the function returns true, then the file will be displayed. |
data |
data to pass to |
data_destroy |
function to call to free |