CustomFilter
Description:
[ CCode ( has_construct_function = false ) ]
public CustomFilter (owned CustomFilterFunc? match_func)
public CustomFilter (owned CustomFilterFunc? match_func)
Creates a new filter using the given function to filter items.
If match_func
is `NULL`, the filter matches all items.
If the filter func changes its filtering behavior, [method@Gtk.Filter.changed] needs to be called.
Parameters:
match_func |
function to filter items |
user_data |
user data to pass to |
user_destroy |
destroy notify for |
Returns:
a new `GtkCustomFilter` |