diff options
author | Rodeo <[email protected]> | 2012-09-16 22:38:19 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-09-16 22:38:19 +0000 |
commit | 7c8b48baed78bccfe280c10c3eabb06e32b14958 (patch) | |
tree | c9885b1c481702a01a0eed6aa24cca99fcc39e73 | |
parent | 9fc704dc5bd063a805b2fa5025c574da9a06eec3 (diff) |
MacGui: Objective-C/cosmetics.
Apologies if I break anything.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4967 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index e147484c0..c9bb931b5 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -99,18 +99,18 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It [self writeToActivityLog: "%s", [versionStringFull UTF8String]]; /* Load the dockTile and instiante initial text fields */ - self->dockTile = [[NSApplication sharedApplication] dockTile]; + dockTile = [[NSApplication sharedApplication] dockTile]; NSImageView *iv = [[NSImageView alloc] init]; [iv setImage:[[NSApplication sharedApplication] applicationIconImage]]; - [self->dockTile setContentView:iv]; + [dockTile setContentView:iv]; /* We can move the specific values out from here by subclassing NSDockTile and package everything in here */ /* If colors are to be chosen once and for all, we can also remove the instantiation with numerical values */ - percentField = [[DockTextField alloc] initWithFrame:NSMakeRect(0.0f, 32.0f, self->dockTile.size.width, 30.0f)]; + percentField = [[DockTextField alloc] initWithFrame:NSMakeRect(0.0f, 32.0f, [dockTile size].width, 30.0f)]; [percentField changeGradientColors:[NSColor colorWithSRGBRed:0.4f green:0.6f blue:0.4f alpha:1.0f] withEndColor:[NSColor colorWithSRGBRed:0.2f green:0.4f blue:0.2f alpha:1.0f]]; [iv addSubview:percentField]; - timeField = [[DockTextField alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, self->dockTile.size.width, 30.0f)]; + timeField = [[DockTextField alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, [dockTile size].width, 30.0f)]; [timeField changeGradientColors:[NSColor colorWithSRGBRed:0.6f green:0.4f blue:0.4f alpha:1.0f] withEndColor:[NSColor colorWithSRGBRed:0.4f green:0.2f blue:0.2f alpha:1.0f]]; [iv addSubview:timeField]; @@ -677,7 +677,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It [timeField setHidden:NO]; } - [self->dockTile display]; + [dockTile display]; } - (void) updateUI: (NSTimer *) timer |