X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/d93cbb5e5f24aa986220c4b9ddb7e17885545182..6983220ff84632481c1628720fe15b8f3ac1c9cb:/Constructor/main.cpp?ds=inline diff --git a/Constructor/main.cpp b/Constructor/main.cpp index 2768d48..715de7f 100644 --- a/Constructor/main.cpp +++ b/Constructor/main.cpp @@ -1,9 +1,9 @@ -// 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 #include #include -#include "ventana.h" +#include "constructor.h" int main (int argc, char **argv) { Gtk::Main kit(argc, argv); @@ -19,12 +19,9 @@ int main (int argc, char **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; }