-// g++ -Wall -g `pkg-config --cflags --libs libglademm-2.0` -o ventana main.cc ventana.cc
+// g++ -Wall -g `pkg-config --cflags --libs libglademm-2.0` -o ventana main.cpp
#include <iostream>
#include <libglademm.h>
#include <gtkmm.h>
-#include "ventana.h"
+#include "constructor.h"
int main (int argc, char **argv)
{
Gtk::Main kit(argc, argv);
std::cerr << ex.what() << std::endl;
return 1;
}
-
- Ventana* pWindow = 0;
- refXml->get_widget_derived("window1", pWindow);
- pWindow->set_title("Una ventana posta");
- // refXml->get_widget_derived("button9",btn_salir);
-// btn_salir->signal_released().connect(SigC::slot(*this,&BtnSalir::on_pressed));
+ Constructor* pWindow = 0;
+ refXml->get_widget_derived("wnd_constructor", pWindow);
+
kit.run(*pWindow);
return 0;
}