Red Hat Bugzilla – Bug 79036
GtkSpinButton climb-rate is set properly in Glade XML, but "Adjustment" is *NOT*
Last modified: 2008-05-01 11:38:04 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
When setting the climb-rate on a GtkSpinButton widget in Glade2 to anything
other than 1, the following happens:
1. The xml output correctly shows the right value for the climb-rate property, but
2. Since the "adjustment" property seems to control the GtkSpinButton
functionality, that "adjustment" property's 4th value(climb-rate) still shows
"1", which does *NOT* reflect its changed value.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a GtkSpinButton widget using Glade2 - leave the climb-rate at the
default setting of 1.
2.save the glade project
3.inspect the .glade output file - find the GtkSpinButton widget, and
confirm the value of the "climb-rate" property is 1, *and* that
the 4th element in the "adjustment" property's value is also 1.
4.go back into glade2, and change the GtkSpinButton "climb-rate" to 10.
5.save the project
6.inspect the glade xml output file - confirm that the "climb_rate"
property has the correct value of 10. Also confirm that the
"adjustment" property has the incorrect 4th element(climb_rate)
value of 1.
Fourth adjustment value is step_increment, that's not the same as climb rate.
the climb rate is the rate of acceleration if you hold down the mouse button
on the arrow. The step_increment is the initial increment, and the climb rate
grows the increment over time.
Here's what happens - when I changed the climb-rate in glade(2), saved the
project , and then tested it, the climb rate(when I clicked on the up-arrow of
the spinbutton) still incremented by 1. I wanted each click on the up-arrow to
result in an increment of 10.<br>
So I tried changing the 4th value of the adjustment property from 1 to 10, and
then tested it - then, each click on the up-arrow resulted in an increment of
10, which is what I wanted.<br>
I see now - as you suggested, the "Step Increment" is the glade control that I
want to change from 1 to 10, to get the behavior I'm looking for. I'm closing