mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 06:40:38 +00:00
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:
parent
d16088af08
commit
2aa64c58a9
4 changed files with 43 additions and 30 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue