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, the visible callback function

Details

Sets the visible function used when filtering the filter 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, e.g. because it depends on some global parameters, you must call the function gtk-tree-model-filter-refilter 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.
 

See also

2021-3-2