X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/9350f4883b2e1eb780bd3a30c801fe9eaaaf5f4f..f53d095dd5ffb5afacf5c6f9a23d6cf1985fc237:/Client/src/principal.cpp diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index 67eed09..45d4a44 100644 --- a/Client/src/principal.cpp +++ b/Client/src/principal.cpp @@ -148,9 +148,12 @@ void Principal::on_conexion_finished() conexion = NULL; } -void Principal::on_conexion_ok() +void Principal::on_conexion_ok(const std::string &body) { - txt_view->get_buffer()->insert_at_cursor("El server dice que ta' todo ok!\n"); + std::cout << body << std::endl; + txt_view->get_buffer()->insert_at_cursor("\n"); + txt_view->get_buffer()->insert_at_cursor(Glib::locale_to_utf8(body)); + txt_view->get_buffer()->insert_at_cursor("\n"); } void Principal::on_conexion_error(unsigned code) @@ -169,6 +172,7 @@ void Principal::on_get_clicked() { if (conexion == NULL) { txt_view->get_buffer()->insert_at_cursor("SIN CONEXION\n"); + return; }