// FIXME - hacer que se puedan cargar mas plantas bien.
Glib::Mutex::Lock lock(plants_mutex);
plants["default"] = new Plant(plant_filename);
- plants["default"]->signal_finished().connect(
- SigC::bind<const char*>(
- SigC::slot_class(*this, &Server::on_plant_finished),
- "default"));
+ plants["default"]->signal_finished().connect(SigC::bind(
+ SigC::slot_class(*this, &Server::on_plant_finished),
+ "default"));
plants["default"]->run();
}
#endif // DEBUG
ControlServer* connection = new ControlServer(sd);
// TODO verificar si el new se hace bien? no creo.
- connection->signal_command_received().connect(
- SigC::bind<ControlServer*>(
- SigC::slot_class(*this, &Server::on_control_command_received),
- connection));
+ connection->signal_command_received().connect(SigC::bind(
+ SigC::slot_class(*this, &Server::on_control_command_received),
+ connection));
// TODO:
return connection;
}