On Sun, 2008-02-10 at 18:29 +0000, Joe wrote:
> Right, so I've derived a Gtk::Frame to create the right pane of my gtkmm
> application.
>
> It contains some Gtk::SpinButtons and I also created a Gtk::Adjustment
> for each one.
>
> Now I'm quite new so at first I didn't realise I had to use
> Gtk::Adjustment's so I didn't do it and everything worked fine except
> the SpinButtons were unusable.
>
> After adding them to the class like this:
>
> Gtk::SpinButton fsize_spin;
> Gtk::Adjustment fsize_adj;
>
> and putting them into the constructor like this:
>
> Right_Pane::Right_Pane()
> : fsize_adj(1024,1,1073741824,1,1024,0),
> fsize_spin(fsize_adj)
> {
> // the rest
> }
>
> the program segfaults with:
>
> Glib::ConstructParams::ConstructParams(): invalid unclassed object
> pointer for value type `GtkAdjustment'
are you trying to create a static instance of a Right_Pane ?
Gtk::Main::init() must be called before any Gtk objects can be created.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list