Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-26 Thread Ron Tarrant via Digitalmars-d-learn
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... Act

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-26 Thread Russel Winder via Digitalmars-d-learn
On Thu, 2019-04-25 at 11:36 +, Ron Tarrant via Digitalmars-d-learn wrote: > I've scoured the docs, the wrapper code, the Internet, but can't > come up with an explanation... > > When running this example of a VolumeButton, no matter what the > initial value of the slider, the icon showing is

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 25 April 2019 at 17:57:25 UTC, Mike Wey wrote: On 25-04-2019 15:19, Ron Tarrant wrote: This looks like an issue with GTK, the icon is not updated when changing the Adjustment, only when the value changes. So, it should be reported directly to the GTK people rather than... well.

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Mike Wey via Digitalmars-d-learn
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 t

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
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 Adj

Re: GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread number via Digitalmars-d-learn
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

GTK Scale/Volume Buttons Show Muted Icon on Startup

2019-04-25 Thread Ron Tarrant via Digitalmars-d-learn
I've scoured the docs, the wrapper code, the Internet, but can't come up with an explanation... When running this example of a VolumeButton, no matter what the initial value of the slider, the icon showing is audio-volume-muted. I wrote up a second test using the parent, a ScaleButton, passi