OK - I'll check it out... (in more than one sense :-))I didn't quite get what you mean though - 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?
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? 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?
Murray Cumming Comneon com wrote:
The version in cvs makes this work more like the existing get_widget() function - you must create a new Gnome::Glade::Xml to get a new instance. Murray Cumming murrayc usa netwww.murrayc.com-----Original Message-----From: Christer Palm [mailto:palm nogui se] Sent: Dienstag, 16. September 2003 02:01To: gtkmm-list gnome org Subject: [gtkmm] glademm get_widget_derived Hi!I'm sure I'm missing something obvious, but how do I instantiate more than one instance of a widget using glademm's get_widget_derived()?My main window brings up various dialog boxes using: MyDialog* my_dialog = 0; glade->get_widget_derived("myDialog", my_dialog); if (my_dialog) { int rc = my_dialog->run(); }The second time I bring up a certain dialog, I get the following warning:glibmm-WARNING **: This object, of type gtkmm__GtkDialog, already has a wrapper.You should use wrap() instead of a constructor. -- Christer Palm _______________________________________________ gtkmm-list mailing list gtkmm-list gnome org http://mail.gnome.org/mailman/listinfo/gtkmm-list_______________________________________________ gtkmm-list mailing list gtkmm-list gnome org http://mail.gnome.org/mailman/listinfo/gtkmm-list