GTK Scale/Volume Buttons Show Muted Icon on Startup

Ron Tarrant rontarrant at gmail.com
Fri Apr 26 13:35:25 UTC 2019


On Friday, 26 April 2019 at 09:36:04 UTC, Russel Winder wrote:

> If I remember correctly, you have to set up the volume button, 
> set the initial
> volume, then set up and add the adjustment, and then reset the 
> initial value
> via the adjustment to get the icon correct. Memory on this is 
> hazy...

Actually, you're memory on this point is fine, Russell.

My solution—in an effort to keep is as clear as possible—was to 
do the initial setting of the new Adjustment to (initialValue + 
1), and then do setValue(initialValue).


More information about the Digitalmars-d-learn mailing list