X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/8cd57f66ca12d475f479f0f816270f9833926088..2bfad376fbc5a10a08ee8f18267234126d34e0bc:/Client/src/main.cpp?ds=inline diff --git a/Client/src/main.cpp b/Client/src/main.cpp index e1cb336..085c2b1 100644 --- a/Client/src/main.cpp +++ b/Client/src/main.cpp @@ -2,34 +2,27 @@ #include #include #include -#include "menu_bar.h" +#include "principal.h" int main (int argc, char **argv) { Gtk::Main client(argc, argv); + Glib::thread_init(); //Load the Glade file and instiate its widgets: Glib::RefPtr refXml; try { - refXml = Gnome::Glade::Xml::create("client.glade", "Principal"); + refXml = Gnome::Glade::Xml::create("client.glade"); } catch(const Gnome::Glade::XmlError& ex) { - std::cerr << "(main.cpp:18) : "; + std::cerr << "(main.cpp:17) : "; std::cerr << ex.what() << std::endl; return 1; } - Gtk::Window* pWindow = 0; - Gtk::Button *bar_exit; - Gtk::Fixed *work_place; - MiMenuBar *menu_bar; + Principal* pWindow = 0; - refXml->get_widget("Principal", pWindow); - refXml->get_widget_derived("menu_bar", menu_bar); - refXml->get_widget("bar_exit", bar_exit); - refXml->get_widget("work_place", work_place); - work_place->set_size_request(10000, 10000); - bar_exit->signal_clicked().connect( SigC::slot(Gtk::Main::quit) ); + refXml->get_widget_derived("Principal", pWindow); client.run(*pWindow); return 0;