Package: gtk

Function gtk-list-box-set-filter-func

Lambda List

gtk-list-box-set-filter-func (listbox func)

Arguments

listbox -- a gtk-list-box widget
func -- a gtk-list-box-filter-func callback function that lets you filter which rows to show

Details

By setting a filter function on the list 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 func function will be called for each row after the call, and it will continue to be called each time a row changes via the gtk-list-box-row-changed function, or when the gtk-list-box-invalidate-filter function is called.

Note that using a filter function is incompatible with using a model, see the gtk-list-box-bind-model function.
 

See also

2021-11-15