Skip to content

liststore: add n-items property

Benjamin Otte requested to merge wip/otte/liststore-properties into main

The use case here is a desire by people to create bindings in UI files of listmodel's item counts to other things.

The main example is checking n-items == 0 to display a getting started placeholder or to hide expander icons if the child model is empty.

I intend to add the same property all the listmodels in GTK.

Merge request reports