| Top |
GtkCustomFilter is a GtkFilter that uses a callback to determine whether to include an item or not.
gboolean (*GtkCustomFilterFunc) (gpointer item,gpointer user_data);
User function that is called to determine if the item
should be matched.
If the filter matches the item, this function must return TRUE. If the
item should be filtered out, FALSE must be returned.
GtkFilter * gtk_custom_filter_new (GtkCustomFilterFunc match_func,gpointer user_data,GDestroyNotify user_destroy);
Creates a new filter using the given match_func
to filter
items.
If the filter func changes its filtering behavior,
gtk_filter_changed() needs to be called.