]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blob - Client/src/main.cpp
c1dfbf5a31590d809437a3f112e0f34c1df9bd8f
[z.facultad/75.42/plaqui.git] / Client / src / main.cpp
1
2 #include <gtkmm.h>
3 #include <libglademm.h>
4 #include <iostream>
5
6 int main (int argc, char **argv)
7 {
8         Gtk::Main client(argc, argv);
9
10         //Load the Glade file and instiate its widgets:
11         Glib::RefPtr<Gnome::Glade::Xml> refXml;
12         try {
13                 refXml = Gnome::Glade::Xml::create("client.glade", "Principal");
14         }
15         catch(const Gnome::Glade::XmlError& ex) {
16                 std::cerr << ex.what() << std::endl;
17                 return 1;
18         }
19
20         Gtk::Window* pWindow = 0;
21         refXml->get_widget("Principal", pWindow);
22   if (pWindow) {
23                 client.run(*pWindow);
24         }
25
26         return 0;
27 }
28