treelistmodel: Delay notifies from TreeListRow
authorBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 21:40:56 +0000 (23:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 21:40:56 +0000 (23:40 +0200)
commit3c76f3fb58aeb717b127ebf170819bc6b6aac3da
treedfc59369d7c514691788180aa7b8133d32252965
parent8766a6fab2143fcf0191872ca711dc046d10b7d7
treelistmodel: Delay notifies from TreeListRow

Don't notify during destruction, notify afterwards.
This way we don't call into user code from a half-destructed node.

Note that this changes the order in which those notifies happen when
collapsing a large tree: From parent node before child nodes to child
nodes before parent node.

No actual use case for this, just thought it would be safer.
gtk/gtktreelistmodel.c