Adium

Changeset 15044

Show
Ignore:
Timestamp:
01/23/2006 03:04:10 PM (3 years ago)
Author:
evands
Message:

Fixed display of the close widget when selecting a tab via its icon. Fixes #2791

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AIUtilities Framework/Source/AICustomTabCell.m

    r14206 r15044  
    179179{ 
    180180    selected = inSelected; 
    181 
     181         
     182        /* If we were selected via an area within our close button rect, we should update accordingly. When we originally received the mouseEntered: 
     183         * event it was ignored because we weren't selected at the time. 
     184         */ 
     185        if (selected) { 
     186                NSPoint localPoint; 
     187 
     188                //Local mouse location 
     189                localPoint = [[view window] convertScreenToBase:[NSEvent mouseLocation]]; 
     190                localPoint = [view convertPoint:localPoint fromView:nil]; 
     191 
     192                if (NSPointInRect(localPoint, [self _closeButtonRect])) { 
     193                        [self setHoveringClose:YES]; 
     194                } 
     195        } 
     196
     197 
    182198- (BOOL)isSelected{ 
    183199    return selected;