Changeset 3628

Show
Ignore:
Timestamp:
03/18/07 17:20:57 (1 year ago)
Author:
timothy
Message:

Remove useless calls to disableFlushWindow, enableFlushWindow and displayIfNeeded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Controllers/JVChatWindowController.m

    r3544 r3628  
    988988        if( ! item ) return; 
    989989 
    990         [[self window] disableFlushWindow]; 
    991  
    992990        if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { 
    993991                id lastActive = _activeViewController; 
     
    10211019 
    10221020        [self _refreshWindowTitle]; 
    1023  
    1024         if( [[self window] isFlushWindowDisabled] ) 
    1025                 [[self window] enableFlushWindow]; 
    1026         [[self window] displayIfNeeded]; 
    10271021} 
    10281022 
  • trunk/Controllers/JVSidebarChatWindowController.m

    r3471 r3628  
    7474        if( ! item ) return; 
    7575 
    76         [[self window] disableFlushWindow]; 
    77  
    7876        if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { 
    7977                id lastActive = _activeViewController; 
     
    110108 
    111109        [self _refreshWindowTitle]; 
    112  
    113         if( [[self window] isFlushWindowDisabled] ) 
    114                 [[self window] enableFlushWindow]; 
    115         [[self window] displayIfNeeded]; 
    116110} 
    117111@end 
  • trunk/Controllers/JVTabbedChatWindowController.m

    r3544 r3628  
    517517        if( absolute || ( distance > -1 && distance < 1 ) ) distance = destHeight - tabSize.height; 
    518518 
    519         [[self window] disableFlushWindow]; 
    520  
    521519        tabSize.height += distance; 
    522520        [customTabsView setFrameSize:tabSize]; 
     
    530528        [tabView setNeedsDisplay:YES]; 
    531529 
    532         if( [[self window] isFlushWindowDisabled] ) 
    533                 [[self window] enableFlushWindow]; 
    534         [[self window] displayIfNeeded]; 
    535  
    536530        // return YES when the desired height is reached 
    537531        return ( tabSize.height == destHeight ); 
     
    541535        id item = [(JVChatTabItem *)[tabView selectedTabViewItem] chatViewController]; 
    542536        if( ! item ) return; 
    543  
    544         [[self window] disableFlushWindow]; 
    545537 
    546538        if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { 
     
    571563 
    572564        [self _refreshWindowTitle]; 
    573  
    574         if( [[self window] isFlushWindowDisabled] ) 
    575                 [[self window] enableFlushWindow]; 
    576         [[self window] displayIfNeeded]; 
    577565} 
    578566 
  • trunk/Panels/JVChatConsolePanel.m

    r3597 r3628  
    478478        sendFrame.origin.y = NSHeight( displayFrame ) + dividerThickness; 
    479479 
    480         [[display window] disableFlushWindow]; // prevent any draw (white) flashing that might occur 
    481  
    482480        NSScrollView *scrollView = [display enclosingScrollView]; 
    483481        NSScroller *scroller = [scrollView verticalScroller]; 
     
    493491 
    494492        [splitView setNeedsDisplay:YES]; // makes the divider redraw correctly later 
    495         if( [[display window] isFlushWindowDisabled] ) 
    496                 [[display window] enableFlushWindow]; // flush everything we have drawn 
    497         [[display window] displayIfNeeded]; 
    498493} 
    499494 
  • trunk/Panels/JVDirectChatPanel.m

    r3614 r3628  
    13011301        sendFrame.origin.y = NSHeight( webFrame ) + dividerThickness; 
    13021302 
    1303         [[display window] disableFlushWindow]; // prevent any draw (white) flashing that might occur 
    1304  
    13051303        JVMarkedScroller *scroller = [display verticalMarkedScroller]; 
    13061304        if( ! scroller || [scroller floatValue] >= 0.985 ) _scrollerIsAtBottom = YES; 
     
    13141312 
    13151313        [splitView setNeedsDisplay:YES]; // makes the divider redraw correctly later 
    1316         if( [[display window] isFlushWindowDisabled] ) 
    1317                 [[display window] enableFlushWindow]; // flush everything we have drawn 
    1318         [[display window] displayIfNeeded]; 
    13191314} 
    13201315 
  • trunk/Views/JVStyleView.m

    r3627 r3628  
    577577                [self clearScrollbarMarks]; 
    578578 
    579                 [[self window] displayIfNeeded]; 
    580579                if( [[self window] isFlushWindowDisabled] ) 
    581580                        [[self window] enableFlushWindow]; 
    582                 [[self window] flushWindowIfNeeded]; 
    583581 
    584582                [self performSelector:@selector( _contentFrameIsReady ) withObject:nil afterDelay:0.];