* Source/NSApplication.m: Removed icns string addition to rely on

NSImage code to find the image.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26808 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-08-14 02:21:15 +00:00
parent b79669d5f1
commit 118d6d20f0
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2008-08-13 22:20-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSApplication.m: Removed icns string addition to rely on
NSImage code to find the image.
2008-08-13 01:17-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSInfoPanel.m

View file

@ -934,10 +934,7 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
appIconFile = [infoDict objectForKey: @"CFBundleIconFile"];
if (appIconFile && ![appIconFile isEqual: @""])
{
NSString *fileName = [appIconFile stringByAppendingPathExtension:
@"icns"];
image = [NSImage imageNamed: fileName];
[image setScalesWhenResized: YES];
image = [NSImage imageNamed: appIconFile];
}
if (image == nil)