adjustment: sanity-check values when setting them
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Apr 2023 17:00:08 +0000 (19:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 20 Apr 2023 21:33:28 +0000 (23:33 +0200)
commit75c47755e38b77e2b066ce55783c1de3143f5120
tree5a3de919f34015917cc40c9bc22be0a837f12e13
parente47c0760480b0bda9c85dce4968459fcecbf6fc5
adjustment: sanity-check values when setting them

It's not enough to sanitize values when starting an animation, as the
adjustment can reconfigure itself while the animation runs.
So as a simple way to handle this, we sanitize every value right before
setting it, too.

In the future we might also want to look at sanitizing start/end values
of the animation.

Fixes #5763
gtk/gtkadjustment.c