GNOME Bugzilla – Bug 385858
Spinbutton values not initialized properly when constructing from an existing adjustment
Last modified: 2006-12-14 21:50:17 UTC
Constructing a GTK::Spinbutton in the following way gives a spinbutton with value "0" instead of '6' as defined in the constructor of the Gtk::Adjustment. Gtk::Adjustment myAdjustment(6.0, 1.0, 36.0, 1.0, 5.0, 0.0); Gtk::SpinButton mySpinbutton(myAdjustment); Adding the following line resolves the problem (i.e. the correct initial value of '6' is shown in the GUI). But this is redundant. The first argument in the Gtk::Adjustment constructor should be sufficient. mySpinbutton.set_value(6.0); This bug was not observed in gtkmm 2.8.x This bug was observed in gtkmm 2.10.x on both gentoo and ubuntu distributions.
I believe this was fixed since 2.10.3. *** This bug has been marked as a duplicate of 369335 ***