list: Allow storing size in the ListTile
authorBenjamin Otte <otte@redhat.com>
Wed, 22 Feb 2023 22:33:16 +0000 (23:33 +0100)
committerBenjamin Otte <otte.benjamin@googlemail.com>
Sun, 5 Mar 2023 15:23:20 +0000 (15:23 +0000)
commit3ca4acdc1a7ba7f1b018834236f41dbbd5b9d2c0
treebbad1c66edce2c7f1e8dd5f9e77aa54b39ee9c98
parentc705dba2eef98513763835c644f31ec528df5eeb
list: Allow storing size in the ListTile

... and use it to handle ListView allocations.

Nothing spectacular, just proof of concept.

The code introduces the idea that every tile stores its area (others
would call it "allocation", but I avoided that because tiles aren't
widgets). This should allow moving lots of code into gtklistbase.c and
not require special handling inside ListView and GridView.

And that in turn hopefully makes it easier to add more features (like
sections and so on.)
gtk/gtklistbase.c
gtk/gtklistbaseprivate.h
gtk/gtklistitemmanager.c
gtk/gtklistitemmanagerprivate.h
gtk/gtklistview.c