#include "constructor.h"
+#include <iostream>
Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade):Gtk::Window(cobject)
{
rev = rev.substr(6, rev.length() - 8);
std::string s = "PlaQui Constructor versión " VERSION " (revisión ";
s += rev + ")";
- lbl_plaqui_version->set_text(Glib::locale_to_utf8(s));
+ try {
+ lbl_plaqui_version->set_text(Glib::locale_to_utf8(s));
+ }
+ catch (Glib::ConvertError e) {
+ std::cout << "ConvertError " << e.code() << std::endl;
+ }
+ catch (...) {
+ std::cout << "Error no esperado" << std::endl;
+ }
refGlade->get_widget("dlgAbout", dlg_about);
refGlade->get_widget("close_about", close_about);