mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
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:
parent
139afd0eef
commit
503ebee65b
2 changed files with 10 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue