1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-25 07:22:38 +00:00

update news

This commit is contained in:
Mitchell Livingston 2007-12-06 14:25:27 +00:00
parent 6cdaedb5c8
commit f0f71ec09c
4 changed files with 5 additions and 9 deletions

1
NEWS
View file

@ -14,6 +14,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
+ Leopard: Time Machine will ignore incomplete downloads
+ Display remaining time for seeding transfers
+ Sort by total activity
+ Leopard: Fix bug where text fields would reject localized double values
- GTK+:
+ Statistics window

View file

@ -75,8 +75,8 @@
float downloadRate, uploadRate;
tr_torrentRates(fLib, &downloadRate, &uploadRate);
BOOL upload;
if ((upload = checkUpload && uploadRate >= 0.1))
BOOL upload = checkUpload && uploadRate >= 0.1;
if (upload)
[self badge: [NSImage imageNamed: @"UploadBadge"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0];
if (checkDownload && downloadRate >= 0.1)
{
@ -118,12 +118,9 @@
NSRect stringRect = badgeRect;
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5;
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
stringRect.size = stringSize;
//adjust for shadow
stringRect.origin.y += 1.0;
[string drawInRect: stringRect withAttributes: fAttributes];
}

View file

@ -57,8 +57,7 @@
}
//change that just impacts the dock badge
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge)
name: @"DockBadgeChange" object: nil];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateBadge) name: @"DockBadgeChange" object: nil];
}
return self;

View file

@ -400,7 +400,6 @@
return NO;
}
- (void) setBadge: (id) sender
{
[[NSNotificationCenter defaultCenter] postNotificationName: @"DockBadgeChange" object: self];