On Mon, 2006-05-08 at 10:12 +0200, Dodji Seketeli wrote: > Hello, > > I am not sure you can directly layout your own class with glade. > You would have to change glade-2 somehow, to make it know about > your custom class. > > What I usually do in that case is to put a box (like GtkVBox) > in my layout (at the place where I'd like to pack the DisplayPlot), > and call it "mydisplayplotcontainer" (for instance). > > Then load the the box: > > Gtk::Box *the_container = Gnome::Glade::Xml::get_widget > ("mycustomclasscontainer") ; > > //then, pack your DisplayPlot > DisplayPlot *plot = Gtk::manage (new DisplayPlot) ; > the_container->pack_start (*plot) ;
get_widget_derived() is a neater solution: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch20s03.html -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list