After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 385858 - Spinbutton values not initialized properly when constructing from an existing adjustment
Spinbutton values not initialized properly when constructing from an existing...
Status: RESOLVED DUPLICATE of bug 369335
Product: gtkmm
Classification: Bindings
Component: general
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-12-14 14:37 UTC by Bernhard Sonderegger
Modified: 2006-12-14 21:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Bernhard Sonderegger 2006-12-14 14:37:37 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.
Comment 1 Murray Cumming 2006-12-14 21:50:17 UTC
I believe this was fixed since 2.10.3.

*** This bug has been marked as a duplicate of 369335 ***