Re: Associating data with list store



On Sat, 2007-06-02 at 15:49 +0100, Robert Pearce wrote:
> > have you tried the obvious:
> > 
> > 
> >     Gtk::TreeModelColumn<DLF_ScreenItem*> dataitem;
> > 
> Yes, see above.... That's the version that mostly seems to work (there is a bug in a method that currently iterates over the list one entry per call) but throws pages and pages of GTK warnings and "critical"s when run. In particular, when creating and populating the ListStore, and iterating over it.
> 
> The first errors (during creation of the TreeView) are:
> 
> (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.
 
--  
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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