X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServerSocket.cpp;h=7940b7fc3886d2e3c5017c8c9894da437f237e32;hb=1db7ad00fe02ca4ebba56a5e02c2b9856dc538db;hp=e36b071e3484630d764722380d32dc80afacea90;hpb=62ca7f3ae55ad2e0c395cb554d71afab87de1ee3;p=lyx.git diff --git a/src/ServerSocket.cpp b/src/ServerSocket.cpp index e36b071e34..7940b7fc38 100644 --- a/src/ServerSocket.cpp +++ b/src/ServerSocket.cpp @@ -28,7 +28,7 @@ #include "support/FileName.h" #include "support/socktools.h" -#include +#include "support/bind.h" #include #include @@ -40,7 +40,7 @@ using namespace std; using namespace lyx::support; -using boost::shared_ptr; + namespace lyx { @@ -64,7 +64,7 @@ ServerSocket::ServerSocket(FileName const & addr) theApp()->registerSocketCallback( fd_, - boost::bind(&ServerSocket::serverCallback, this) + bind(&ServerSocket::serverCallback, this) ); LYXERR(Debug::LYXSERVER, "lyx: New server socket " @@ -115,7 +115,7 @@ void ServerSocket::serverCallback() shared_ptr(new LyXDataSocket(client_fd)); theApp()->registerSocketCallback( client_fd, - boost::bind(&ServerSocket::dataCallback, + bind(&ServerSocket::dataCallback, this, client_fd) ); } @@ -143,6 +143,7 @@ void ServerSocket::dataCallback(int fd) string const cmd = line.substr(pos + 1); DispatchResult dr; theApp()->dispatch(lyxaction.lookupFunc(cmd), dr); + theApp()->dispatch(FuncRequest(LFUN_PARAGRAPH_UPDATE)); string const rval = to_utf8(dr.message()); if (dr.error()) client->writeln("ERROR:" + cmd + ':' + rval);