rev = rev.substr(6, rev.length() - 8);
std::string s = "PlaQui Client 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 (...) {
+ lbl_plaqui_version->set_text("PlaQui Client");
+ }
rg->get_widget("anim_frames", anim);
anim->set(anim_frames[current_frame]);
load_xml_dispatch();
} else {
Glib::ustring s;
- s = "<IN>\n"+Glib::locale_to_utf8(body)+"\n</IN>\n";
+ try {
+ s = "<IN>\n"+Glib::locale_to_utf8(body)+"\n</IN>\n";
+ }
+ catch (...) {
+ s = "NO SE PUDO CONVERTIR MENSAJE A UTF8";
+ }
txt_view->get_buffer()->insert(txt_view->get_buffer()->begin(),s);
}
}
lbl_plaqui_version->set_text(Glib::locale_to_utf8(s));
}
catch (Glib::ConvertError e) {
- std::cout << "ConvertError " << e.code() << std::endl;
+ lbl_plaqui_version->set_text("PlaQui Constructor");
}
catch (...) {
- std::cout << "Error no esperado" << std::endl;
+ lbl_plaqui_version->set_text("PlaQui Constructor");
}
refGlade->get_widget("dlgAbout", dlg_about);