X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/0bf4e9e2336a15ee267bd39b6ac325326fb10d9d..f53d095dd5ffb5afacf5c6f9a23d6cf1985fc237:/Client/src/principal.cpp diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index c6a4760..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)