listview: Handle emptying of views
authorBenjamin Otte <otte@redhat.com>
Fri, 3 Mar 2023 01:38:24 +0000 (02:38 +0100)
committerBenjamin Otte <otte.benjamin@googlemail.com>
Sun, 5 Mar 2023 15:23:20 +0000 (15:23 +0000)
commitb488fae893ebba2a75f313dc6b9c1807e21225aa
tree93f603f32231e57a3ced2c7d5be5791a355228cc
parentb962defc11d05695b477e57d22fade977e37915c
listview: Handle emptying of views

The previous check does not longer work.

When a model gets all items deleted, there will still be existing tiles
until the next time garbage collection is run.
So do that before checking if the list is empty.
gtk/gtkgridview.c
gtk/gtklistview.c