By setting a filter function on the @box one can decide dynamically which
of the rows to show.
For instance, to implement a search function on a list that
filters the original list to only show the matching rows.
The @filter_func will be called for each row after the call, and
it will continue to be called each time a row changes (via
[method@Gtk.ListBoxRow.changed]) or when [method@Gtk.ListBox.invalidate_filter]
is called.
Note that using a filter function is incompatible with using a model
(see [method@Gtk.ListBox.bind_model]).
By setting a filter function on the @box one can decide dynamically which of the rows to show.
For instance, to implement a search function on a list that filters the original list to only show the matching rows.
The @filter_func will be called for each row after the call, and it will continue to be called each time a row changes (via [method@Gtk.ListBoxRow.changed]) or when [method@Gtk.ListBox.invalidate_filter] is called.
Note that using a filter function is incompatible with using a model (see [method@Gtk.ListBox.bind_model]).