Range: Fix hilight not drawn to value if page-size
authorDaniel Boles <dboles.src@gmail.com>
Sun, 23 Jul 2023 10:11:40 +0000 (11:11 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Sun, 23 Jul 2023 10:11:40 +0000 (11:11 +0100)
commit62e68f72d6cc09dbc85bf82063fc3dc6c168b19a
tree07a21b6f34e3ec2c8558bf70f8a2fd08df9e4b7e
parent0b1bcf8bee89950e2783d65000b692f059375fba
Range: Fix hilight not drawn to value if page-size

If we have a non-zero Adjustment:page-size, the actual amount we draw is
reduced by that page-size. We account for this in various places, but we
did not when deciding how far to allocate the highlight widget, so we
were drawing the highlight not far enough, falling short of the value.
This fixes by subtracting the page-size from the drawn range here too.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5976
gtk/gtkrange.c