Changeset 4080


Ignore:
Timestamp:
Dec 6, 2007, 2:25:27 PM (15 years ago)
Author:
livings124
Message:

update news

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEWS

    r4070 r4080  
    1515   + Display remaining time for seeding transfers
    1616   + Sort by total activity
     17   + Leopard: Fix bug where text fields would reject localized double values
    1718- GTK+:
    1819   + Statistics window
  • trunk/macosx/BadgeView.m

    r4075 r4080  
    7676        tr_torrentRates(fLib, &downloadRate, &uploadRate);
    7777       
    78         BOOL upload;
    79         if ((upload = checkUpload && uploadRate >= 0.1))
     78        BOOL upload = checkUpload && uploadRate >= 0.1;
     79        if (upload)
    8080            [self badge: [NSImage imageNamed: @"UploadBadge"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0];
    8181        if (checkDownload && downloadRate >= 0.1)
     
    119119    NSRect stringRect = badgeRect;
    120120    stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
    121     stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5;
     121    stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
    122122    stringRect.size = stringSize;
    123    
    124     //adjust for shadow
    125     stringRect.origin.y += 1.0;
    126123   
    127124    [string drawInRect: stringRect withAttributes: fAttributes];
  • trunk/macosx/Badger.m

    r4072 r4080  
    5858       
    5959        //change that just impacts the dock badge
    60         [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge)
    61                                                 name: @"DockBadgeChange" object: nil];
     60        [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge) name: @"DockBadgeChange" object: nil];
    6261    }
    6362   
  • trunk/macosx/PrefsController.m

    r4078 r4080  
    401401}
    402402
    403 
    404403- (void) setBadge: (id) sender
    405404{   
Note: See TracChangeset for help on using the changeset viewer.