~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/xsci/wf_w_util.c

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FIG : Facility for Interactive Generation of figures
 
3
 * Copyright (c) 1985 by Supoj Sutanthavibul
 
4
 *
 
5
 * "Permission to use, copy, modify, distribute, and sell this software and its
 
6
 * documentation for any purpose is hereby granted without fee, provided that
 
7
 * the above copyright notice appear in all copies and that both the copyright
 
8
 * notice and this permission notice appear in supporting documentation. 
 
9
 * No representations are made about the suitability of this software for 
 
10
 * any purpose.  It is provided "as is" without express or implied warranty."
 
11
 */
 
12
 
 
13
#include "wf_fig.h"
 
14
#include "wf_figx.h"
 
15
#include "wf_resources.h"
 
16
#include "wf_w_drawprim.h"
 
17
#include "wf_w_util.h"
 
18
#include "wf_w_setup.h"
 
19
 
 
20
#include "../machine.h"
 
21
#include "All-extern.h"
 
22
 
 
23
/* manually flush out X events */
 
24
 
 
25
void app_flush()
 
26
{
 
27
    while (XtAppPending(app_con)) {
 
28
        XEvent          event;
 
29
 
 
30
        /* pass events to ensure we are completely initialised */
 
31
        XtAppNextEvent(app_con, &event);
 
32
        XtDispatchEvent(&event);
 
33
    }
 
34
}
 
35
 
 
36
 
 
37
 
 
38
 
 
39
 
 
40