]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GUIRunTime.C
make NEW_TABULAR default, some GUIRunTime changes
[lyx.git] / src / frontends / gnome / GUIRunTime.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *           Copyright 2000 The LyX Team.
7  *
8  *======================================================*/
9
10 #include <config.h>
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include FORMS_H_LOCATION
17
18 #include "GUIRunTime.h"
19 #include "debug.h"
20
21 #include <gnome--/main.h>
22
23 using std::endl;
24
25 extern bool finished;
26
27 void GUIRunTime::processEvents() 
28 {
29         while(Gnome::Main::instance()->events_pending())
30                 Gnome::Main::instance()->iteration(FALSE);
31 }
32
33
34 void GUIRunTime::runTime()
35 {
36         XEvent ev;
37         while (!finished) {
38                 processEvents();
39                 if (fl_check_forms() == FL_EVENT) {
40                         lyxerr << "LyX: This shouldn't happen..." << endl;
41                         fl_XNextEvent(&ev);
42                 }
43         }
44 }