Move context creating from backend here.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12888 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-02-28 15:28:51 +00:00
parent e096ea3e38
commit bcc88c38c8
2 changed files with 19 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2002-02-27 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m ([NSApplication -init]): Create our
NSGraphicsContext here (moved from backend initialization) - much
more appealing.
Thu Feb 28 14:19:00 2002 Nicola Pero <nicola@brainstorm.co.uk>
* Headers/gnustep/gui/NSText.h: Added the special key enum

View file

@ -504,12 +504,6 @@ static NSCell* tileCell = nil;
{
CREATE_AUTORELEASE_POOL (_app_init_pool);
/* Initialize the backend here. This is equivalent to connecting to
our window server, so if someone wants to query information that might
require the backend, they just need to instantiate a sharedApplication
*/
initialize_gnustep_backend();
self = [super init];
NSApp = self;
if (NSApp == nil)
@ -522,7 +516,19 @@ static NSCell* tileCell = nil;
NSDebugLog(@"Begin of NSApplication -init\n");
_default_context = GSCurrentContext();
/* Initialize the backend here. */
initialize_gnustep_backend();
/* Create our context. This is equivalent to connecting to
our window server, so if someone wants to query information that might
require the backend, they just need to instantiate a sharedApplication
*/
_default_context = [NSGraphicsContext graphicsContextWithAttributes: nil];
[NSGraphicsContext setCurrentContext: _default_context];
/* Initialize font manager */
[NSFontManager sharedFontManager];
_hidden = [[NSMutableArray alloc] init];
_inactive = [[NSMutableArray alloc] init];
_unhide_on_activation = YES;