1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(trunk) when creating the dock icon badge view, we do not need to give it a frame

This commit is contained in:
Mitchell Livingston 2011-03-03 03:53:21 +00:00
parent c7006ed8b3
commit c6d31092dc
3 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@
BOOL fQuitting;
}
- (id) initWithFrame: (NSRect) frame lib: (tr_session *) lib;
- (id) initWithLib: (tr_session *) lib;
- (BOOL) setRatesWithDownload: (CGFloat) downloadRate upload: (CGFloat) uploadRate;
- (void) setQuitting;

View file

@ -35,9 +35,9 @@
@implementation BadgeView
- (id) initWithFrame: (NSRect) frame lib: (tr_session *) lib
- (id) initWithLib: (tr_session *) lib
{
if ((self = [super initWithFrame: frame]))
if ((self = [super init]))
{
fLib = lib;

View file

@ -35,7 +35,7 @@
fCompleted = 0;
BadgeView * view = [[BadgeView alloc] initWithFrame: [[[NSApp dockTile] contentView] frame] lib: lib];
BadgeView * view = [[BadgeView alloc] initWithLib: lib];
[[NSApp dockTile] setContentView: view];
[view release];
}