Create the app icon in NSApplication -_init as suggested by Fred.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2011-06-04 15:07:54 +00:00
parent 139afd0eef
commit 503ebee65b
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-06-04 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSApplication.m (-_init, -finishLaunching): Create the
app icon in NSApplication -_init as suggested by Fred.
2011-06-04 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/Functions.m (NSApplicationMain):

View file

@ -915,6 +915,11 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
/* We are the end of responder chain. */
[self setNextResponder: nil];
/* Create our app icon.
NB We are doing this here because WindowMaker will not map the app icon
window unless it is the very first window being mapped. */
[self _appIconInit];
[_app_init_pool drain];
}
@ -996,8 +1001,6 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
BOOL didAutoreopen = NO;
NSArray *files = nil;
[self _appIconInit];
/* post notification that launch will finish */
[nc postNotificationName: NSApplicationWillFinishLaunchingNotification
object: self];