add missing bits to gtk port

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7924 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2003-10-15 10:55:42 +00:00
parent 18ce60e3c6
commit eac541985f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-15 José Matos <jamatos@lyx.org>
* lyx_gui.C (start): add lyxsocket.
(LyX_XErrHandler): fix call to emergencyCleanup.
2003-10-14 Angus Leeming <leeming@lyx.org> 2003-10-14 Angus Leeming <leeming@lyx.org>
* lyx_gui.C (start): store the LyXView in the LyX list of all LyXViews. * lyx_gui.C (start): store the LyXView in the LyX list of all LyXViews.

View File

@ -36,6 +36,7 @@
#include "buffer_funcs.h" #include "buffer_funcs.h"
#include "lyxfunc.h" #include "lyxfunc.h"
#include "lyxserver.h" #include "lyxserver.h"
#include "lyxsocket.h"
#include "BufferView.h" #include "BufferView.h"
#include "GView.h" #include "GView.h"
@ -54,6 +55,8 @@
#include "xformsImage.h" #include "xformsImage.h"
#include "xforms_helpers.h" #include "xforms_helpers.h"
namespace os = lyx::support::os;
using std::ostringstream; using std::ostringstream;
using std::string; using std::string;
@ -62,6 +65,7 @@ extern BufferList bufferlist;
// FIXME: wrong place ! // FIXME: wrong place !
LyXServer * lyxserver; LyXServer * lyxserver;
LyXServerSocket * lyxsocket;
bool lyx_gui::use_gui = true; bool lyx_gui::use_gui = true;
@ -117,7 +121,7 @@ int LyX_XErrHandler(Display * display, XErrorEvent * xeev) {
} }
// emergency cleanup // emergency cleanup
LyX::emergencyCleanup(); LyX::cref().emergencyCleanup();
// Get the reason for the crash. // Get the reason for the crash.
char etxt[513]; char etxt[513];
@ -326,6 +330,8 @@ void lyx_gui::start(string const & batch, std::vector<string> const & files)
// FIXME: some code below needs moving // FIXME: some code below needs moving
lyxserver = new LyXServer(&view.getLyXFunc(), lyxrc.lyxpipes); lyxserver = new LyXServer(&view.getLyXFunc(), lyxrc.lyxpipes);
lyxsocket = new LyXServerSocket(&view.getLyXFunc(),
os::slashify_path(os::getTmpDir() + "/lyxsocket"));
std::vector<string>::const_iterator cit = files.begin(); std::vector<string>::const_iterator cit = files.begin();
std::vector<string>::const_iterator end = files.end(); std::vector<string>::const_iterator end = files.end();
@ -353,6 +359,7 @@ void lyx_gui::start(string const & batch, std::vector<string> const & files)
} }
// FIXME: breaks emergencyCleanup // FIXME: breaks emergencyCleanup
delete lyxsocket;
delete lyxserver; delete lyxserver;
} }