Re: Gtk::ListStore problem



On Fri, 2005-11-25 at 12:33 -0500, Paul Davis wrote:
> On Fri, 2005-11-25 at 15:55 +0100, Tomek wrote:
> > Hi!
> > Why can't I create Gtk::ListStore model in the global space? (at the
> > beginning of my file, outside the main() function).
> 
> you cannot construct any gtkmm (or glibmm, or pangomm or gdkmm etc etc)
> types until the type system for each namespace has been set up, which is
> normally done as part of Gtk::Main::init() or explicitly in main().

I think his problem was actually a compiler error. I think he tried to
initialize something in a header with the create() function. But, yes,
when he got it to work he would hit this problem.

Murray




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