Changeset 3471
- Timestamp:
- 12/17/06 22:35:56 (2 years ago)
- Files:
-
- trunk/Controllers/JVChatWindowController.m (modified) (2 diffs)
- trunk/Controllers/JVSidebarChatWindowController.m (modified) (2 diffs)
- trunk/Controllers/JVTabbedChatWindowController.m (modified) (3 diffs)
- trunk/Panels/JVChatConsolePanel.m (modified) (1 diff)
- trunk/Panels/JVDirectChatPanel.m (modified) (1 diff)
- trunk/Preferences/JVAppearancePreferences.m (modified) (2 diffs)
- trunk/Views/JVStyleView.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Controllers/JVChatWindowController.m
r3470 r3471 984 984 985 985 - (void) _refreshWindow { 986 id item = [self selectedListItem]; 987 if( ! item ) return; 988 986 989 [[self window] disableFlushWindow]; 987 988 id item = [self selectedListItem];989 if( ! item ) goto end;990 990 991 991 if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { … … 1021 1021 [self _refreshWindowTitle]; 1022 1022 1023 end: 1024 [[self window] enableFlushWindow];1023 if( [[self window] isFlushWindowDisabled] ) 1024 [[self window] enableFlushWindow]; 1025 1025 [[self window] displayIfNeeded]; 1026 1026 } trunk/Controllers/JVSidebarChatWindowController.m
r3462 r3471 71 71 72 72 - (void) _refreshWindow { 73 id item = [self selectedListItem]; 74 if( ! item ) return; 75 73 76 [[self window] disableFlushWindow]; 74 75 id item = [self selectedListItem];76 if( ! item ) goto end;77 77 78 78 if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { … … 111 111 [self _refreshWindowTitle]; 112 112 113 end: 114 [[self window] enableFlushWindow];113 if( [[self window] isFlushWindowDisabled] ) 114 [[self window] enableFlushWindow]; 115 115 [[self window] displayIfNeeded]; 116 116 } trunk/Controllers/JVTabbedChatWindowController.m
r3462 r3471 529 529 [tabView setNeedsDisplay:YES]; 530 530 531 [[self window] enableFlushWindow]; 531 if( [[self window] isFlushWindowDisabled] ) 532 [[self window] enableFlushWindow]; 532 533 [[self window] displayIfNeeded]; 533 534 … … 537 538 538 539 - (void) _refreshWindow { 540 id item = [(JVChatTabItem *)[tabView selectedTabViewItem] chatViewController]; 541 if( ! item ) return; 542 539 543 [[self window] disableFlushWindow]; 540 541 id item = [(JVChatTabItem *)[tabView selectedTabViewItem] chatViewController];542 if( ! item ) goto end;543 544 544 545 if( ( [item conformsToProtocol:@protocol( JVChatViewController )] && item != (id) _activeViewController ) || ( ! _activeViewController && [[item parent] conformsToProtocol:@protocol( JVChatViewController )] && ( item = [item parent] ) ) ) { … … 570 571 [self _refreshWindowTitle]; 571 572 572 end: 573 [[self window] enableFlushWindow];573 if( [[self window] isFlushWindowDisabled] ) 574 [[self window] enableFlushWindow]; 574 575 [[self window] displayIfNeeded]; 575 576 } trunk/Panels/JVChatConsolePanel.m
r3470 r3471 490 490 491 491 [splitView setNeedsDisplay:YES]; // makes the divider redraw correctly later 492 [[display window] enableFlushWindow]; // flush everything we have drawn 492 if( [[display window] isFlushWindowDisabled] ) 493 [[display window] enableFlushWindow]; // flush everything we have drawn 493 494 [[display window] displayIfNeeded]; 494 495 } trunk/Panels/JVDirectChatPanel.m
r3470 r3471 1211 1211 1212 1212 [splitView setNeedsDisplay:YES]; // makes the divider redraw correctly later 1213 [[display window] enableFlushWindow]; // flush everything we have drawn 1213 if( [[display window] isFlushWindowDisabled] ) 1214 [[display window] enableFlushWindow]; // flush everything we have drawn 1214 1215 [[display window] displayIfNeeded]; 1215 1216 } trunk/Preferences/JVAppearancePreferences.m
r3460 r3471 99 99 100 100 #pragma mark - 101 102 - (void) awakeFromNib {103 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( styleDidReload: ) name:JVStyleViewDidChangeStylesNotification object:preview];104 }105 101 106 102 - (void) initializeFromDefaults { … … 291 287 - (void) updateVariant { 292 288 [preview setStyleVariant:[_style defaultVariantName]]; 293 294 if( [[preview window] isFlushWindowDisabled] ) [[preview window] enableFlushWindow];295 296 [[preview window] disableFlushWindow];297 289 [preview reloadCurrentStyle]; 298 }299 300 - (void) styleDidReload:(NSNotification *) notification {301 if( [[preview window] isFlushWindowDisabled] ) [[preview window] enableFlushWindow];302 [[preview window] displayIfNeeded];303 290 } 304 291 trunk/Views/JVStyleView.m
r3460 r3471 502 502 } 503 503 504 [_domDocument autorelease];504 id old = _domDocument; 505 505 _domDocument = (DOMHTMLDocument *)[[frame DOMDocument] retain]; 506 507 [_body autorelease]; 506 [old release]; 507 508 old = _body; 508 509 _body = (DOMHTMLElement *)[[_domDocument getElementById:@"contents"] retain]; 509 510 if( ! _body ) _body = (DOMHTMLElement *)[[_domDocument body] retain]; 511 [old release]; 510 512 511 513 [self performSelector:@selector( _checkForTransparantStyle ) withObject:nil afterDelay:0.]; … … 515 517 [self clearScrollbarMarks]; 516 518 517 if( [[self window] isFlushWindowDisabled] ) [[self window] enableFlushWindow]; 519 [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector( _enableFlushWindowTimeout ) object:nil]; 520 521 if( [[self window] isFlushWindowDisabled] ) 522 [[self window] enableFlushWindow]; 518 523 [[self window] displayIfNeeded]; 519 524 … … 665 670 666 671 [[self window] disableFlushWindow]; 672 [self performSelector:@selector( _enableFlushWindowTimeout ) withObject:nil afterDelay:2.]; 667 673 668 674 if( _mainFrameReady ) { … … 674 680 [[self mainFrame] loadRequest:request]; 675 681 } 682 } 683 684 - (void) _enableFlushWindowTimeout { 685 if( [[self window] isFlushWindowDisabled] ) 686 [[self window] enableFlushWindow]; 676 687 } 677 688
