Changeset 3734


Ignore:
Timestamp:
Nov 6, 2007, 9:03:20 PM (15 years ago)
Author:
livings124
Message:

readd the tooltips to the filter buttons

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r3733 r3734  
    331.00 (zzzz/xx/yy)
    44- All Platforms:
    5    + UPnP now performed with MiniUPnP
     5   + UPnP now performed by MiniUPnP
    66- OS X:
    77   + Leopard: Time Machine will ignore incomplete downloads
  • trunk/macosx/Controller.m

    r3732 r3734  
    18571857   
    18581858    //set buttons with counts
    1859     #warning reimplement
    1860     /*[fNoFilterButton setCount: [fTorrents count]];
    1861     [fDownloadFilterButton setCount: downloading];
    1862     [fSeedFilterButton setCount: seeding];
    1863     [fPauseFilterButton setCount: paused];*/
     1859    #warning make better
     1860    [fNoFilterButton setToolTip: [fTorrents count] == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
     1861        : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), [fTorrents count]]];
     1862    [fDownloadFilterButton setToolTip: downloading == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
     1863        : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), downloading]];
     1864    [fSeedFilterButton setToolTip: seeding == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
     1865        : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), seeding]];
     1866    [fPauseFilterButton setToolTip: paused == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
     1867        : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), paused]];
    18641868   
    18651869    NSString * searchString = [fSearchFilterField stringValue];
Note: See TracChangeset for help on using the changeset viewer.