Package: gtk

Accessor gtk:filter-list-model-incremental

Lambda List

gtk:filter-list-model-incremental (object)

Syntax

(gtk:filter-list-model-incremental object) => incremental
(setf (gtk:filter-list-model-incremental object) incremental)

Arguments

object -- a gtk:filter-list-model object
incremental -- true if incremental filtering is enabled

Details

Accessor of the incremental slot of the gtk:filter-list-model class. The gtk:filter-list-model-incremental function returns whether incremental filtering was enabled. The (setf gtk:filter-list-model-incremental) function sets incremental filtering.

When incremental filtering is enabled, the gtk:filter-list-model object will not run filters immediately, but will instead queue an idle handler that incrementally filters the items and adds them to the list. This of course means that items are not instantly added to the list, but only appear incrementally.

When your filter blocks the UI while filtering, you might consider turning this on. Depending on your model and filters, this may become interesting around 10,000 to 100,000 items. By default, incremental filtering is disabled.

See the gtk:filter-list-model-pending function for progress information about an ongoing incremental filtering operation.
 

See also

2023-9-28