3 #include <libglademm.h>
5 #include "mnu_file_exit.h"
6 #include "mnu_help_about.h"
8 int main (int argc, char **argv)
10 Gtk::Main client(argc, argv);
12 //Load the Glade file and instiate its widgets:
13 Glib::RefPtr<Gnome::Glade::Xml> refXml;
15 refXml = Gnome::Glade::Xml::create("client.glade", "Principal");
17 catch(const Gnome::Glade::XmlError& ex) {
18 std::cerr << "(main.cpp:18) : ";
19 std::cerr << ex.what() << std::endl;
23 Gtk::Window* pWindow = 0;
24 MnuFileExit *mnu_file_exit = 0;
25 MnuHelpAbout *mnu_help_about = 0;
26 Gtk::Button *bar_exit;
27 Gtk::Fixed *work_place;
29 refXml->get_widget("Principal", pWindow);
30 refXml->get_widget_derived("mnu_file_exit", mnu_file_exit);
31 refXml->get_widget_derived("mnu_help_about", mnu_help_about);
32 refXml->get_widget("bar_exit", bar_exit);
33 refXml->get_widget("work_place", work_place);
34 work_place->set_size_request(10000, 10000);
35 bar_exit->signal_clicked().connect( SigC::slot(Gtk::Main::quit) );