X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/1a58ff524a145fed39424b8fb61116f8050a684a..fc388ed8c2016ad44f83d20859bf864562f731a1:/Client/src/main.cpp?ds=sidebyside diff --git a/Client/src/main.cpp b/Client/src/main.cpp index c1dfbf5..e1cb336 100644 --- a/Client/src/main.cpp +++ b/Client/src/main.cpp @@ -2,6 +2,7 @@ #include #include #include +#include "menu_bar.h" int main (int argc, char **argv) { @@ -13,15 +14,23 @@ int main (int argc, char **argv) refXml = Gnome::Glade::Xml::create("client.glade", "Principal"); } catch(const Gnome::Glade::XmlError& ex) { + std::cerr << "(main.cpp:18) : "; std::cerr << ex.what() << std::endl; return 1; } Gtk::Window* pWindow = 0; + Gtk::Button *bar_exit; + Gtk::Fixed *work_place; + MiMenuBar *menu_bar; + refXml->get_widget("Principal", pWindow); - if (pWindow) { - client.run(*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) ); + client.run(*pWindow); return 0; }