+
+/* Maneja el Ayuda->Acerca de */
+
+#include <gtkmm.h>
+#include <iostream>
+
+class MnuHelpAbout:public Gtk::MenuItem {
+public:
+ MnuHelpAbout(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade):Gtk::MenuItem(cobject) {
+ }
+ virtual ~MnuHelpAbout() {}
+
+protected:
+ Glib::RefPtr<Gnome::Glade::Xml> refXml;
+ virtual void on_activate() {
+ try {
+ refXml = Gnome::Glade::Xml::create("client.glade", "dlgAbout");
+ }
+ catch(const Gnome::Glade::XmlError &ex) {
+ std::cerr << ex.what() << std::endl;
+ return;
+ }
+ Gtk::Window *dlg = 0;
+ Gtk::Button *btn_cerrar = 0;
+ refXml->get_widget("dlgAbout", dlg);
+ refXml->get_widget("btn_close", btn_cerrar);
+ btn_cerrar->signal_clicked().connect(SigC::slot(*dlg, &Gtk::Dialog::hide));
+ dlg->show();
+ }
+};
+