Re: Problem Gtk::SpinButton and Gtk::Adjustment causing segfault
- From: Joe <sharperguy bluebottle com>
- To: gtkmm-list gnome org
- Subject: Re: Problem Gtk::SpinButton and Gtk::Adjustment causing segfault
- Date: Sun, 10 Feb 2008 20:10:42 +0000
No, I was putting it into a window
On Sun, 2008-02-10 at 14:59 -0500, Paul Davis wrote:
> 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.
>
>
----------------------------------------------------------------------
Find out how you can get spam free email.
http://www.bluebottle.com/tag/3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]