Package: gtk

Accessor gtk:filter-list-model-pending

Lambda List

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

Syntax

(gtk:filter-list-model-pending object) => pending

Arguments

object -- a gtk:filter-list-model object
pending -- an unsigned integer with the number of items not yet filtered.

Details

Accessor of the pending slot of the gtk:filter-list-model class. The gtk:filter-list-model-pending function returns the number of items that have not been filtered yet.

You can use this value to check if object is busy filtering by comparing the return value to 0 or you can compute the percentage of the filter remaining by dividing the return value by the total number of items in the underlying model:
(let ((percentage (/ (gtk:filter-list-model-pending object)
                     (gtk:filter-list-model-n-items object))))
  ... )  
If no filter operation is ongoing - in particular when the incremental property is false - this function returns 0.
 

See also

2023-9-28