GtkScale::value-change receives values beyond its GtkAdjustment:upper bound
Submitted by Gary Ching-Pang Lin
Link to original bug (#600535)
Description
Created attachment 146810 sample program
The callback function of value-change will receive an out-of-range value if I drag the scrollbar to the rightest.
The sample program will create a HScale with the range [0,100]. cb_scroll_change() prints the value it got when it is aroused by "value-change". The returned value will be larger than 100 while I dragged the scrollbar to the rightest.
Reproduce Steps:
-
Open a terminal and compile the sample program with gcc
pkg-config gtk+-2.0 --libs --cflags
scale.c -o scale -
Execute scale
-
Drag the scroll bar to the rightest and observe the number printed in the terminal
Attachment 146810, "sample program":
scale.c
Version: 3.22.x