rev = rev.substr(6, rev.length() - 8);
std::string s = "PlaQui Constructor versión " VERSION " (revisión ";
s += rev + ")";
- 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;
- }
+ lbl_plaqui_version->set_text(Glib::convert(s, "UTF-8", "ISO-8859-1"));
refGlade->get_widget("dlgAbout", dlg_about);
refGlade->get_widget("close_about", close_about);
else
Gtk::Main::quit();
}
-
+bool Constructor::on_delete_event(GdkEventAny *e)
+{
+ std::cout<<"terminando constructor"<<std::endl;
+ on_main_menu_quit();
+ return true;
+}
//Sale del programa guardando el archivo.
void Constructor::on_btn_dlg_quit_ok_clicked()
{