filter
to be func
. The
function should return TRUE
if the given row should be visible and
FALSE
otherwise.gtkTreeModelFilterSetVisibleFunc(object, func, data = NULL)
object
func
GtkTreeModelFilterVisibleFunc
, the visible function.data
NULL
. [ allow-none ]gtkTreeModelFilterRefilter
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.
visible_func <- function(model, iter, data) { ## Visible if row is non-empty and first column is "HI" visible <- FALSESince 2.4str <- model$get(iter, 0)[[1]] if (identical(str, "HI")) visible <- TRUE
return(visible) }