mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
* 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:
parent
b79669d5f1
commit
118d6d20f0
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue