Changeset 3214


Ignore:
Timestamp:
Sep 28, 2007, 12:58:31 PM (14 years ago)
Author:
livings124
Message:

didn't mean to commit some experimental, nonworking code; also, only create the string attributes when needed

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PeerProgressIndicatorCell.h

    r3213 r3214  
    2828{
    2929    BOOL fIsHidden;
     30    NSDictionary * fAttributes;
    3031    NSImage * fCheckImage;
    3132}
  • trunk/macosx/PeerProgressIndicatorCell.m

    r3213 r3214  
    4646            [centeredStyle setAlignment:NSCenterTextAlignment];
    4747           
    48             [[NSString stringWithFormat: @"%.1f%%", [self floatValue] * 100.0] drawInRect: cellFrame
    49                         withAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
    50                                             [NSFont systemFontOfSize: 11.0], NSFontAttributeName, nil]];
     48            if (!fAttributes)
     49                fAttributes = [NSDictionary dictionaryWithObject: [NSFont systemFontOfSize: 11.0] forKey: NSFontAttributeName];
     50            [[NSString stringWithFormat: @"%.1f%%", [self floatValue] * 100.0] drawInRect: cellFrame withAttributes: fAttributes];
    5151        }
    5252        else
  • trunk/macosx/TorrentCell.m

    r3213 r3214  
    271271        if (rightWidth > 0)
    272272        {
    273             if (![fDefaults boolForKey: @"DisplayProgressBarAvailable"])
     273            /*if (![fDefaults boolForKey: @"DisplayProgressBarAvailable"])
    274274            {
    275275                int notAvailableWidth = barRect.size.width * [torrent notAvailableDesired];
     
    289289                    [fYellowGradient fillRect: notAvailableRect angle: -90];
    290290                }
    291             }
     291            }*/
    292292           
    293293            if (rightWidth > 0)
Note: See TracChangeset for help on using the changeset viewer.