2 * Ejemplo dummy levantando la interfaz de mi TP5 con glade en gtkmm.
5 * g++ -Wall -g `pkg-config --cflags --libs libglademm-2.0` -o tp5 tp5.cc midrawingarea.cc
10 #include "midrawingarea.h"
13 int main (int argc, char **argv)
15 Gtk::Main kit(argc, argv);
17 //Load the Glade file and instiate its widgets:
18 Glib::RefPtr<Gnome::Glade::Xml> refXml;
21 refXml = Gnome::Glade::Xml::create("tp5.glade");
23 catch(const Gnome::Glade::XmlError& ex)
25 std::cerr << ex.what() << std::endl;
29 Gtk::Window* pWindow = 0;
30 refXml->get_widget("window", pWindow);
33 MiDrawingArea* pDrawingArea = 0;
34 refXml->get_widget_derived("drawingarea", pDrawingArea);