2000-08-16 15:27:11 +00:00
|
|
|
|
/* This file is part of
|
|
|
|
|
* ======================================================
|
|
|
|
|
*
|
|
|
|
|
* LyX, The Document Processor
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2000 The LyX Team.
|
|
|
|
|
*
|
|
|
|
|
* @author J<EFBFBD>rgen Vigna
|
|
|
|
|
*
|
|
|
|
|
*======================================================*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma implementation
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "GUIRunTime_pimpl.h"
|
|
|
|
|
#include <gnome--/main.h>
|
|
|
|
|
|
|
|
|
|
using std::endl;
|
|
|
|
|
|
2000-08-16 23:48:48 +00:00
|
|
|
|
extern bool finised;
|
2000-08-16 15:27:11 +00:00
|
|
|
|
|
|
|
|
|
void GUIRunTime::Pimpl::processEvents()
|
|
|
|
|
{
|
|
|
|
|
while(Gnome::Main::instance()->events_pending())
|
|
|
|
|
Gnome::Main::instance()->iteration(FALSE);
|
|
|
|
|
}
|
2000-08-16 23:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void GUIRunTime::Pimpl::runTime()
|
|
|
|
|
{
|
|
|
|
|
XEvent ev;
|
|
|
|
|
while (!finished) {
|
|
|
|
|
Pimpl::processEvents();
|
|
|
|
|
if (fl_check_forms() == FL_EVENT) {
|
|
|
|
|
lyxerr << "LyX: This shouldn't happen..." << endl;
|
|
|
|
|
fl_XNextEvent(&ev);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|