get_pending


Description:

public uint get_pending ()

Returns the number of items that have not been filtered yet.

You can use this value to check if this 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:

```c pending = gtk_filter_list_model_get_pending (self); model = gtk_filter_list_model_get_model (self); percentage = pending / (double) g_list_model_get_n_items (model); ```

If no filter operation is ongoing - in particular when [[email protected]:incremental] is false - this function returns 0.

Parameters:

this

a `GtkFilterListModel`

Returns:

The number of items not yet filtered




2022 vala-language.org