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