Scale Properties Adjustment precision doesn't match Scale Properties Digits
Submitted by Greg Schussman
Link to original bug (#438744)
Description
Please describe the problem: For the scale widget, one can set the Digits property, which is the number of decimal places to display in the value. But for the slider Adjustment properties, the precision is always exactly 2.
Steps to reproduce:
- run glade and create a window with a vertical scale
- go to the scale's properties and set digits to 3
- go to the scale's properties and attempt to set Step inc to 0.001
Actual results: For step 3, you get "0.00" and can't type in the 1 to get "0.001"
Expected results: I would expect that the precision of all the adjustments (Value, Lower, Upper, Step inc, Page inc, Page size) would all set their digits to match the scale's Digits propertly. That is, after putting "3" in Digits, if Step inc was "0.01", in should become "0.010", and allow you to set the last digit, say to "0.015".
Does this happen every time? yes
Other information: Perhaps when the adjustment data is saved, since it is saved as ASCII anyway, it should be saved as the same string as you see in glade. So if you see "Step inc: 0.003" in glade, then you should see "0.003" in the glade file, not "0.0030000000001". Just a thought.