Changeset 599


Ignore:
Timestamp:
Jul 16, 2006, 4:50:32 AM (16 years ago)
Author:
livings124
Message:

Highlighting of filter buttons should hopefully be even more "less buggy."

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r596 r599  
    3333    {
    3434        fEnabled = NO;
     35        fTrackingTag = 0;
    3536       
    3637        NSSize buttonSize = [self frame].size;
     
    105106}
    106107
    107 - (void) awakeFromNib
    108 {
    109     fTrackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
    110 }
    111 
    112108- (void) dealloc
    113109{
     
    207203- (void) resetBounds: (NSNotification *) notification
    208204{
    209     [self removeTrackingRect: fTrackingTag];
     205    if (fTrackingTag)
     206        [self removeTrackingRect: fTrackingTag];
    210207    fTrackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
    211208}
  • trunk/macosx/Controller.m

    r597 r599  
    15721572    minSize.height += heightChange;
    15731573    [fWindow setContentMinSize: minSize];
     1574   
     1575    //reset tracking rects for filter buttons
     1576    [fNoFilterButton resetBounds: nil];
     1577    [fSeedFilterButton resetBounds: nil];
     1578    [fDownloadFilterButton resetBounds: nil];
     1579    [fPauseFilterButton resetBounds: nil];
    15741580}
    15751581
Note: See TracChangeset for help on using the changeset viewer.