X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/d5b77deafa264d4581e971f1943be9173d776fd6..44617167ac216781537290dce9cc097df89dc3d2:/Constructor/src/constructor.cpp diff --git a/Constructor/src/constructor.cpp b/Constructor/src/constructor.cpp index 5fa6ae0..86e8842 100644 --- a/Constructor/src/constructor.cpp +++ b/Constructor/src/constructor.cpp @@ -1,4 +1,5 @@ #include "constructor.h" +#include Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtr& refGlade):Gtk::Window(cobject) { @@ -22,7 +23,15 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtrset_text(Glib::locale_to_utf8(s)); + try { + lbl_plaqui_version->set_text(Glib::locale_to_utf8(s)); + } + catch (Glib::ConvertError e) { + lbl_plaqui_version->set_text("PlaQui Constructor"); + } + catch (...) { + lbl_plaqui_version->set_text("PlaQui Constructor"); + } refGlade->get_widget("dlgAbout", dlg_about); refGlade->get_widget("close_about", close_about); @@ -220,7 +229,12 @@ void Constructor::on_main_menu_quit() else Gtk::Main::quit(); } - +bool Constructor::on_delete_event(GdkEventAny *e) +{ + std::cout<<"terminando constructor"<