RE: [gtkmm] glademm get_widget_derived



> From: Christer Palm [mailto:palm nogui se] 
> do you mean that 
> the with the 
> CVS version, you don't have to create a new Gnome::Glade::Xml 
> for each 
> instance anymore? Or is it the other way around?

You _do_ have to create a new Gnome::Glade::xml instance, just as you do now
for get_widget().

> Anyhow, this brings up a question I asked before, but never 
> got answered;
> 
> If I call Gnome::Glade::Xml::create() more than once on the 
> same file, 
> will the XML file be parsed all over again?


Yes, I believe so.

> If so I guess it 
> makes sense 
> to split up the interface into separate files for each 
> Window/Dialog to 
> speed up the parsing and reduce the overhead of keeping 
> several copies 
> of the whole interface in memory? Or does libglademm do this for you 
> under the cover?

Personally I don't optimise without proof that it makes any difference,
particularly when that optimisation just makes life more difficult.

Murray Cumming
murrayc usa net
www.murrayc.com



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