listbase: Clear any newly set adjustments
authorBenjamin Otte <otte@redhat.com>
Thu, 30 Mar 2023 06:29:32 +0000 (08:29 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 31 Mar 2023 15:35:48 +0000 (17:35 +0200)
commitdbff49b5a7117a14af0c323e7e982b61aa705de0
tree4924b4e196df47b4258ed71cc548e4189c0644da
parent6f4175345f998c494e7ac3cf66c307e34cc35d3d
listbase: Clear any newly set adjustments

The scrolling code assumes the adjustment values are up to date or
it crashes and before we've run size_allocate() we haven't update them.

Fixes a crash in the gtk-demo scrollinfo that would set the adjustments
with random values (via ScrolledWindow.set_child()) and then scroll in a
tick callback right before the (first) size_allocate().
gtk/gtklistbase.c