mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk) when creating the dock icon badge view, we do not need to give it a frame
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user