1 // g++ -Wall -g `pkg-config --cflags --libs libglademm-2.0` -o ventana main.cpp
4 #include <libglademm.h>
6 #include "constructor.h"
7 int main (int argc, char **argv)
9 Gtk::Main kit(argc, argv);
11 //Load the Glade file and instiate its widgets:
12 Glib::RefPtr<Gnome::Glade::Xml> refXml;
15 refXml = Gnome::Glade::Xml::create(PACKAGE_DATA_DIR"/plaqui-constructor/dialogs/constructor.glade");
17 catch(const Gnome::Glade::XmlError& ex)
19 std::cerr << ex.what() << std::endl;
22 Constructor* pWindow = 0;
23 refXml->get_widget_derived("wnd_constructor", pWindow);