diff options
Diffstat (limited to 'src/kernel/tqeventloop_x11_glib.cpp')
| -rw-r--r-- | src/kernel/tqeventloop_x11_glib.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kernel/tqeventloop_x11_glib.cpp b/src/kernel/tqeventloop_x11_glib.cpp index fa449ca07..d031d21ee 100644 --- a/src/kernel/tqeventloop_x11_glib.cpp +++ b/src/kernel/tqeventloop_x11_glib.cpp @@ -321,7 +321,7 @@ bool TQEventLoop::processX11Events() // also flushes output buffer while ( XPending( TQPaintDevice::x11AppDisplay() ) ) { if ( d->shortcut ) { - return FALSE; + return false; } XNextEvent( TQPaintDevice::x11AppDisplay(), &event ); @@ -363,7 +363,7 @@ bool TQEventLoop::processX11Events() nevents++; if ( tqApp->x11ProcessEvent( &event ) == 1 ) { - return TRUE; + return true; } } } @@ -371,16 +371,16 @@ bool TQEventLoop::processX11Events() } if ( d->shortcut ) { - return FALSE; + return false; } TQApplication::sendPostedEvents(); const uint exclude_all = ExcludeSocketNotifiers | ExcludeTimers; if ( nevents > 0 && ( flags & exclude_all ) == exclude_all && ( flags & WaitForMore ) ) { - return TRUE; + return true; } - return FALSE; + return false; } @@ -399,7 +399,7 @@ bool TQEventLoop::gsourcePrepare(GSource *gs, int * timeout) #endif // don't block if exitLoop() or exit()/quit() has been called. - bool canWait = d->exitloop || d->quitnow ? FALSE : (flags & WaitForMore); + bool canWait = d->exitloop || d->quitnow ? false : (flags & WaitForMore); // Process timers and socket notifiers - the common UNIX stuff @@ -463,7 +463,7 @@ bool TQEventLoop::gsourcePrepare(GSource *gs, int * timeout) #ifdef DEBUG_QT_GLIBMAINLOOP printf("inside gsourcePrepare(3a)\n"); #endif - return FALSE; + return false; } // stay in poll until something happens? @@ -472,7 +472,7 @@ bool TQEventLoop::gsourcePrepare(GSource *gs, int * timeout) #ifdef DEBUG_QT_GLIBMAINLOOP printf("inside gsourcePrepare(3b) timeout=%d \n", *timeout); #endif - return FALSE; + return false; } // else timeout >=0 @@ -482,7 +482,7 @@ bool TQEventLoop::gsourcePrepare(GSource *gs, int * timeout) printf("inside gsourcePrepare(3c) timeout=%d \n", *timeout); #endif - return FALSE; + return false; } @@ -503,7 +503,7 @@ bool TQEventLoop::gsourceCheck(GSource *gs) { while ( (sn=it.current()) ) { ++it; if ( sn->gPollFD.revents ) { - return TRUE; + return true; } } } @@ -513,21 +513,21 @@ bool TQEventLoop::gsourceCheck(GSource *gs) { printf("inside gsourceCheck(2) xfd!\n"); #endif - return TRUE; // we got events! + return true; // we got events! } if (d->threadPipe_gPollFD.revents) { #ifdef DEBUG_QT_GLIBMAINLOOP printf("inside gsourceCheck(2) threadpipe!!\n"); #endif - return TRUE; // we got events! + return true; // we got events! } if (hasPendingEvents()) { #ifdef DEBUG_QT_GLIBMAINLOOP printf("inside gsourceCheck(2) pendingEvents!\n"); #endif - return TRUE; // we got more X11 events! + return true; // we got more X11 events! } // check if we have timers to activate? @@ -538,7 +538,7 @@ bool TQEventLoop::gsourceCheck(GSource *gs) { printf("inside gsourceCheck(2) qtwaittimer!\n"); #endif - return TRUE; + return true; } } @@ -547,7 +547,7 @@ bool TQEventLoop::gsourceCheck(GSource *gs) { printf("inside gsourceCheck(2) nothing to dispatch!\n"); #endif - return FALSE; + return false; } @@ -639,10 +639,10 @@ bool TQEventLoop::gsourceDispatch(GSource *gs) { } if (d->singletoolkit) { - return TRUE; // Eat the event + return true; // Eat the event } else { - return FALSE; // Pass the event on to GTK + return false; // Pass the event on to GTK } } |
