jontait2 wrote:
dinasset wrote:
Thanks Jonathan!
thus, if the "hold-on" is executed appropriately, GTK updates only one time, from initial 1.0 to final 0.0 and the result looks OK
No, when you first press an up/down button, GTK increments or decrements the value immediately but also starts a timer for 0.5 second. If the button is still pressed at the end of that 0.5 second, GTK will then start auto-incrementing/decrementing the value every 0.05 second until you release the button.
Every time the value is updated, it is passed to the Script-Fu Extension plugin, which stores the new value in a local data structure for the script in question..
my turn not to understand, and I do not mean that I don't understand what you say, but I don't understand why -by the "hold-on" technique- the resulting value is shown precise 0
if starting from an initial value >= 0.9, because, following your explanation:
- as soon as I press the down button GTK decrements the value immediately (? thus to 0.9 or 1.0 or...whatever initial value ?)
- then (because the hold-on certainly stays for more than 0.5 seconds) the value is updated again (when input is 0.0) and the displayed value is precise 0 (OK)
But the same
should occur if I use this technique starting from any value, also below 0.9, if I hold the down botton for more than 0.5 seconds, the parameter shows at the end 0.0, the new update takes this 0.0 but the msg displays that "strange" value; why?