Ignore:
Timestamp:
10/20/03 21:32:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc

    r2386 r2416  
    7575#include <TObjArray.h>            // TObjArray
    7676#include <TPostScript.h>          // TPostScript
     77
     78#include <TRint.h>                // gApplication, TRint::Class()
    7779#include <TInterpreter.h>         // gInterpreter
    7880
     
    374376
    375377        // make it visible
    376         gClient->ProcessEventsFor(fTab);
     378        // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     379        if (gApplication->InheritsFrom(TRint::Class()))
     380            gClient->ProcessEventsFor(fTab);
    377381    }
    378382
     
    470474        return;
    471475    fStatusBar->SetText(txt, 0);
    472     gClient->ProcessEventsFor(fStatusBar);
     476    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     477    if (gApplication->InheritsFrom(TRint::Class()))
     478        gClient->ProcessEventsFor(fStatusBar);
    473479}
    474480
     
    482488        return;
    483489    fStatusBar->SetText(txt, 1);
    484     gClient->ProcessEventsFor(fStatusBar);
     490    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     491    if (gApplication->InheritsFrom(TRint::Class()))
     492        gClient->ProcessEventsFor(fStatusBar);
    485493}
    486494
     
    567575    MapWindow();
    568576
    569     gSystem->ProcessEvents();
     577    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     578    if (gApplication->InheritsFrom(TRint::Class()))
     579        gSystem->ProcessEvents();
    570580}
    571581
     
    732742
    733743    // display new tab in the main frame
    734     gClient->ProcessEventsFor(fTab);
     744    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     745    if (gApplication->InheritsFrom(TRint::Class()))
     746        gClient->ProcessEventsFor(fTab);
    735747
    736748    *fLog << inf << "Adding Raw Tab '" << name << "' (" << f->GetWidth() << "x";
     
    784796
    785797    // display new tab in the main frame
    786     gClient->ProcessEventsFor(fTab);
     798    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     799    if (gApplication->InheritsFrom(TRint::Class()))
     800        gClient->ProcessEventsFor(fTab);
    787801
    788802    *fLog << inf << "Adding Tab '" << name << "' (" << f->GetWidth() << "x";
     
    910924
    911925    // display new tab in the main frame
    912     gClient->ProcessEventsFor(fTab);
     926    // FIXME: This is a workaround, because TApplication::Run is not thread safe against ProcessEvents
     927    if (gApplication->InheritsFrom(TRint::Class()))
     928        gClient->ProcessEventsFor(fTab);
    913929
    914930    *fLog << inf << "Removed Tab #" << i << " '" << name << "'" << endl;
Note: See TracChangeset for help on using the changeset viewer.