Adjustment problem



I have a spin button, which I create like so:

   Gtk::Adjustment *spinbutton1_adj = Gtk::manage(new class Gtk::Adjustment(25,
0, 100, 1, 10, 10));
   spinbutton1 = Gtk::manage(new class Gtk::SpinButton(*spinbutton1_adj,
   1, 0));

Notice the default value of 25. 

In gtkmm-2.8.8 the spin button actually gets displayed with that value of
25. However, under gtkmm-2.10.2 (in FC6) the spinbutton is displayed with
the value 0.

I have TONS of spin buttons in my application, all set to 0 upon startup. 

What should I be looking into? The gui part of the code was generated with
glademm but I don't think that should matter, should it? The constructor
of the adjustment is called as I showed above. And that agrees with what I
saw on the online doc page. 

Why is the value not being set?






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]