]> granicus.if.org Git - handbrake/commitdiff
MacGui: workaround for a bug in [[NSApplication sharedApplication] applicationIconIma...
authorritsuka <damiog@gmail.com>
Thu, 23 Oct 2014 09:18:36 +0000 (09:18 +0000)
committerritsuka <damiog@gmail.com>
Thu, 23 Oct 2014 09:18:36 +0000 (09:18 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6459 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.m

index f1b221ab557ffbeeda548bd4077d7d94ae498489..b6fc0e38b8cfa92010703c9d84829cf511f059a2 100644 (file)
@@ -82,9 +82,15 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
         presetManager = [[HBPresetsManager alloc] initWithURL:presetsURL];
         _selectedPreset = presetManager.defaultPreset;
 
+        // Workaround to avoid a bug in Snow Leopard
+        // we can switch back to [[NSApplication sharedApplication] applicationIconImage]
+        // when we won't support it anymore.
+        NSImage *appIcon = [NSImage imageNamed:@"HandBrake"];
+        [appIcon setSize:NSMakeSize(1024, 1024)];
+
         // Load the dockTile and instiante initial text fields
         dockTile = [[HBDockTile alloc] initWithDockTile:[[NSApplication sharedApplication] dockTile]
-                                                  image:[[NSApplication sharedApplication] applicationIconImage]];
+                                                  image:appIcon];
 
         [dockTile updateDockIcon:-1.0 withETA:@""];