From 101179f2d7bcc4de75c326d3e9d01694c84d07ca Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 24 Nov 2003 14:04:11 +0000 Subject: [PATCH] Se arregla el cliente para que compile de nuevo (NOT TESTED!) --- Client/include/principal.h | 1 - Client/src/principal.cpp | 23 +++++++---------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/Client/include/principal.h b/Client/include/principal.h index f166cf3..5555524 100644 --- a/Client/include/principal.h +++ b/Client/include/principal.h @@ -73,7 +73,6 @@ protected: virtual bool on_item_clicked(GdkEventButton *, ViewItem *); // Callbacks para las conexiones - void on_conexion_connected(); void on_conexion_finished(); void on_conexion_ok(const std::string &body); void on_conexion_error(unsigned code); diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index 0ec83bb..3b3cab1 100644 --- a/Client/src/principal.cpp +++ b/Client/src/principal.cpp @@ -89,13 +89,17 @@ void Principal::on_dlg_connect_ok() // Conecto las seƱales conexion->signal_ok_received().connect( SigC::slot(*this, &Principal::on_conexion_ok) ); conexion->signal_error_received().connect( SigC::slot(*this, &Principal::on_conexion_error) ); - conexion->signal_connected().connect( SigC::slot(*this, &Principal::on_conexion_connected) ); conexion->signal_finished().connect( SigC::slot(*this, &Principal::on_conexion_finished) ); conexion->signal_frame_received().connect(SigC::slot(*this, &Principal::on_conexion_frame)); // Lanzo la conexion! conexion->run(); - } else { - txt_view->get_buffer()->insert_at_cursor("YA ESTAS CONECTADO\n"); + txt_view->get_buffer()->insert_at_cursor("CONNECTED\n"); + ico_conected->set( Gtk::Stock::YES , Gtk::IconSize(Gtk::ICON_SIZE_LARGE_TOOLBAR)); + + // Pido la planta por defecto + PlaQui::Server::Command c("plant", "get"); + c.add_arg("default"); + conexion->send(c); } dlg_conectar->hide(); } @@ -202,19 +206,6 @@ void Principal::update_items_prop() } -void Principal::on_conexion_connected() -{ - txt_view->get_buffer()->insert_at_cursor("CONNECTED\n"); - ico_conected->set( Gtk::Stock::YES , Gtk::IconSize(Gtk::ICON_SIZE_LARGE_TOOLBAR)); - - // Pido la planta por defecto - if (conexion != NULL) { - PlaQui::Server::Command c("plant", "get"); - c.add_arg("default"); - conexion->send(c); - } -} - void Principal::on_conexion_frame(const std::string &frame) { if (conexion != NULL) { -- 2.43.0