sortlistmodel: Optimize signals
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 May 2023 23:40:20 +0000 (19:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 May 2023 00:37:28 +0000 (20:37 -0400)
commit5c1c22156c5cb1276d7593ccbda9c51ec8ccfebd
tree19f76747fd16a479cb9ac7bf206b05f5de0e439a
parent9c1049e710515e1505bd83783bd342b3ea63b6a4
sortlistmodel: Optimize signals

When we emit items-changed due to a section
sorter change, don't also emit sections-changed.
Instead make the items-changed signal cover the
whole range.

Tests included.
gtk/gtksortlistmodel.c
testsuite/gtk/sortlistmodel.c