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:
parent
c7006ed8b3
commit
c6d31092dc
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue