1 // g++ -Wall -g `pkg-config --cflags --libs libglademm-2.0` -o ventana main.cc ventana.cc
4 #include <libglademm.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("constructor.glade");
17 catch(const Gnome::Glade::XmlError& ex)
19 std::cerr << ex.what() << std::endl;
24 refXml->get_widget_derived("window1", pWindow);
25 pWindow->set_title("Una ventana posta");
26 // refXml->get_widget_derived("button9",btn_salir);
27 // btn_salir->signal_released().connect(SigC::slot(*this,&BtnSalir::on_pressed));