On 25-04-2019 15:19, Ron Tarrant wrote:
On Thursday, 25 April 2019 at 12:40:00 UTC, number wrote:
On Thursday, 25 April 2019 at 11:36:26 UTC, Ron Tarrant wrote:
When running this example of a VolumeButton, ...
When using `setValue(initialValue)` after `setAdjustment()` the scale
seems have the correct value. If in addition the Adjustment is created
with an initial value different from the `initialValue` used with
`setValue()` then the icons are also correct on startup. Though I
don't know why that is. The loading issue doesn't happen here (on linux).
Must be a Windows thing, then.
And even explicitly setting it with setValue() doesn't help. The icon is
still wrong on startup.
This looks like an issue with GTK, the icon is not updated when changing
the Adjustment, only when the value changes.
Using setValue after setting the ajustment should work, only you have to
use a different value than the initial value of the adjustment or GTK
doesn't see it as a change.
--
Mike Wey