revert last change and do proper fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28652 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-09-10 11:02:17 +00:00
parent d16088af08
commit 2aa64c58a9
4 changed files with 43 additions and 30 deletions

View file

@ -2210,12 +2210,17 @@ image.</p><p>See Also: -applicationIconImage</p>
NSSize imageSize = [anImage size];
RETAIN(old_app_icon);
[_app_icon setName: nil];
// Use a copy as we change the name and size
ASSIGNCOPY(_app_icon, anImage);
/* Set the new image to be named 'NSApplicationIcon' ... to do that we
* must first check that any existing eimage of the same name has their
* name removed.
*/
[(NSImage*)[NSImage imageNamed: @"NSApplicationIcon"] setName: nil];
[_app_icon setName: @"NSApplicationIcon"];
[_app_icon setScalesWhenResized: YES];
if (miniWindowSize.width <= 0 || miniWindowSize.height <= 0)