On 6/2/07, Murray Cumming <[EMAIL PROTECTED]> wrote:
> On Sat, 2007-06-02 at 18:30 +0100, Robert Pearce wrote:
> > Hi Murray,
> >
> > On Sat, 02 Jun 2007 18:43:37 +0200 you wrote:
> > > On Sat, 2007-06-02 at 15:49 +0100, Robert Pearce wrote:
> > > > (process:27325): GLib-GObject-CRITICAL **: gtype.c:2242: initialization 
> > > > assertion failed, use IA__g_type_init() prior to this function
> > >
> > > This is probably due to a static instance somewhere in your code. It's
> > > generally impossible to ensure that glibmm/gtkmm is initialized before
> > > static instances, because the sequence of static instance initialization
> > > is not well defined.
> > >
> > I believe the only static instance of anything is the 
> > TreeModelColumnRecord-derived
> >       static DLF_ModelColumns DLF_Columns;
> > This is how the tutorial creates it, because it's needed purely as a 
> > reference point for doing stuff.
>
> The tutorial really shouldn't do that. Could you file a bug (or patch,
> please. The examples are in example/book/) with the exact details.
>
> >  Perhaps the tutorial is misleading, and I ought to create it as a member 
> > of the class that uses the TreeView?
> >

And for reference, this is indeed the way it should be done.

> > Anyway, I discovered I could avoid the problems by declaring my pointer as
> >    Gtk::TreeModelColumn<void*>            dataitem;
> >
> > This does mean that every time I use it I have to explicitly type-cast, 
> > which is ugly, but it seems to work.
> >
> > Thanks,
> > Rob
> > _______________________________________________
> > gtkmm-list mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> --
> Murray Cumming
> [EMAIL PROTECTED]
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to