Re: Adjustment problem



If you write up a quick example I'll take a look real quick and digg into gtk if necessary.  Sounds an awfull lot like a bug of them not getting initialized at instantiation.

Paul

On 10/30/06, Amadeus W.M. <amadeus84 verizon net> wrote:
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?



_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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