Package: gtk

Function gtk:tree-model-filter-set-visible-func

Lambda List

gtk:tree-model-filter-set-visible-func (filter func)

Arguments

filter -- a gtk:tree-model-filter object
func -- a gtk:tree-model-filter-visible-func callback function

Details

Sets the visible function used when filtering the filter model to be func. The function should return true if the given row should be visible and false otherwise.

If the condition calculated by the function changes over time, for example, because it depends on some global parameters, you must call the gtk:tree-model-filter-refilter function to keep the visibility information of the model uptodate.

Note that func is called whenever a row is inserted, when it may still be empty. The visible function should therefore take special care of empty rows.

Warning

The gtk:tree-model-filter implementation is deprecated since 4.10. Use the gtk:filter-list-model implementation instead.
 

See also

#2024-4-29