summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-08 06:12:55 +0000
committerritsuka <[email protected]>2014-08-08 06:12:55 +0000
commit57e31fc550f9418d8aaafc5ed079afa207cf1248 (patch)
tree9b957488cfc8feb949b3c5d3bf5bde31f4dfb27a
parentf30b62ffdb8b1cc5e51a5331383f4682a2e47939 (diff)
MacGui: removed the last remaining of the code to load a custom application icon. It was used to load a specific icon for the 64bit version, but it’s now unused.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6276 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.h2
-rw-r--r--macosx/Controller.m15
-rw-r--r--macosx/English.lproj/MainMenu.xib2
3 files changed, 1 insertions, 18 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h
index 8d8c14df3..3a20d59d4 100644
--- a/macosx/Controller.h
+++ b/macosx/Controller.h
@@ -34,7 +34,6 @@ extern NSString *keyTitleTag;
@interface HBController : NSObject <GrowlApplicationBridgeDelegate, HBPictureControllerDelegate, NSToolbarDelegate, NSDrawerDelegate>
{
- NSImage * fApplicationIcon;
IBOutlet NSWindow * fWindow;
/* Video view controller */
@@ -197,7 +196,6 @@ extern NSString *keyTitleTag;
DockTextField * timeField;
}
- (int) getPidnum;
-- (IBAction) showAboutPanel:(id)sender;
- (IBAction) browseSources: (id) sender;
- (void) browseSourcesDone: (NSOpenPanel *) sheet
diff --git a/macosx/Controller.m b/macosx/Controller.m
index ac7afee32..507fb0113 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -56,11 +56,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
return nil;
}
- fApplicationIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForImageResource:@"HandBrake.icns"]];
-
- if( fApplicationIcon != nil )
- [NSApp setApplicationIconImage:fApplicationIcon];
-
[HBPreferencesController registerUserDefaults];
fHandle = NULL;
fQueueEncodeLibhb = NULL;
@@ -552,7 +547,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fQueueController release];
[fPreviewController release];
[fPictureController release];
- [fApplicationIcon release];
hb_close(&fHandle);
hb_close(&fQueueEncodeLibhb);
@@ -1748,15 +1742,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
}
}
-- (IBAction)showAboutPanel:(id)sender
-{
- NSMutableDictionary* d = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
- fApplicationIcon, @"ApplicationIcon",
- nil ];
- [NSApp orderFrontStandardAboutPanelWithOptions:d];
- [d release];
-}
-
/* Here we open the title selection sheet where we can specify an exact title to be scanned */
- (IBAction) showSourceTitleScanPanel: (id) sender
{
diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib
index 2c7697695..c0391d779 100644
--- a/macosx/English.lproj/MainMenu.xib
+++ b/macosx/English.lproj/MainMenu.xib
@@ -432,7 +432,7 @@
<menuItem title="About HandBrake" id="58">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
- <action selector="showAboutPanel:" target="240" id="5245"/>
+ <action selector="orderFrontStandardAboutPanel:" target="-2" id="W6s-9y-dwJ"/>
</connections>
</menuItem>
<menuItem title="Check for Updates…" id="4964">