3 #include <libglademm.h>
7 int main (int argc, char **argv)
9 Gtk::Main client(argc, argv);
11 //Load the Glade file and instiate its widgets:
12 Glib::RefPtr<Gnome::Glade::Xml> refXml;
14 refXml = Gnome::Glade::Xml::create("client.glade", "Principal");
16 catch(const Gnome::Glade::XmlError& ex) {
17 std::cerr << "(main.cpp:18) : ";
18 std::cerr << ex.what() << std::endl;
22 Gtk::Window* pWindow = 0;
23 Gtk::Button *bar_exit;
24 Gtk::Fixed *work_place;
27 refXml->get_widget("Principal", pWindow);
28 refXml->get_widget_derived("menu_bar", menu_bar);
29 refXml->get_widget("bar_exit", bar_exit);
30 refXml->get_widget("work_place", work_place);
31 work_place->set_size_request(10000, 10000);
32 bar_exit->signal_clicked().connect( SigC::slot(Gtk::Main::quit) );