Changeset 4126


Ignore:
Timestamp:
Dec 12, 2007, 1:51:21 AM (14 years ago)
Author:
livings124
Message:

better resize the filter buttons on tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r4114 r4126  
    259259   
    260260    //set up filter bar
     261    if ([NSApp isOnLeopardOrBetter])
     262    {
     263        [fNoFilterButton sizeToFit];
     264        [fDownloadFilterButton sizeToFit];
     265        [fSeedFilterButton sizeToFit];
     266        [fPauseFilterButton sizeToFit];
     267       
     268        NSRect downloadRect = [fDownloadFilterButton frame];
     269        downloadRect.origin.x = NSMaxX([fNoFilterButton frame]) + 2.0;
     270        [fDownloadFilterButton setFrame: downloadRect];
     271       
     272        NSRect seedRect = [fSeedFilterButton frame];
     273        seedRect.origin.x = NSMaxX(downloadRect) + 2.0;
     274        [fSeedFilterButton setFrame: seedRect];
     275       
     276        NSRect pauseRect = [fPauseFilterButton frame];
     277        pauseRect.origin.x = NSMaxX(seedRect) + 2.0;
     278        [fPauseFilterButton setFrame: pauseRect];
     279    }
     280   
    261281    NSView * contentView = [fWindow contentView];
    262282    NSSize windowSize = [contentView convertSize: [fWindow frame].size fromView: nil];
Note: See TracChangeset for help on using the changeset viewer.