TreeModelFilter.setVisibleFunc

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 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, like in the example below. Since 2.4

class TreeModelFilter
void
setVisibleFunc

Parameters

func GtkTreeModelFilterVisibleFunc

A GtkTreeModelFilterVisibleFunc, the visible function.

data void*

User data to pass to the visible function, or NULL. [allow-none]

destroy GDestroyNotify

Destroy notifier of data, or NULL. [allow-none]

Meta