Ignore:
Timestamp:
Nov 17, 2007, 3:55:23 PM (15 years ago)
Author:
livings124
Message:

readd the custom FilterButton? subclass to simplify setting the tooltip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3851 r3852  
    17501750   
    17511751    //set button tooltips
    1752     #warning make better
    1753     [fNoFilterButton setToolTip: [fTorrents count] == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
    1754         : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), [fTorrents count]]];
    1755     [fDownloadFilterButton setToolTip: downloading == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
    1756         : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), downloading]];
    1757     [fSeedFilterButton setToolTip: seeding == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
    1758         : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), seeding]];
    1759     [fPauseFilterButton setToolTip: paused == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
    1760         : [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), paused]];
     1752    [fNoFilterButton setCount: [fTorrents count]];
     1753    [fDownloadFilterButton setCount: downloading];
     1754    [fSeedFilterButton setCount: seeding];
     1755    [fPauseFilterButton setCount: paused];
    17611756   
    17621757    NSString * searchString = [fSearchFilterField stringValue];
Note: See TracChangeset for help on using the changeset viewer.