Package: gtk

Function gtk-flow-box-set-filter-func

Lambda List

gtk-flow-box-set-filter-func (flowbox func)

Arguments

flowbox -- a gtk-flow-box widget
func -- a gtk-flow-box-filter-func callback function that lets you filter which children to show

Details

By setting a filter function on the flow box one can decide dynamically which of the children to show. For instance, to implement a search function that only shows the children matching the search terms.

The func function will be called for each child widget after the call, and it will continue to be called each time a child changes, via the gtk-flow-box-child-changed function or when the gtk-flow-box-invalidate-filter function is called.

Note that using a filter function is incompatible with using a model. See the gtk-flow-box-bind-model function.
 

See also

*2021-12-15