mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
More fixes for NSApplication
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5255 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ab191734b3
commit
6561a2fbfb
2 changed files with 8 additions and 3 deletions
|
@ -11,7 +11,8 @@ Mon Nov 22 14:51:33:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|||
* Source/NSApplication.m: Fixed Windows menu for new menu API.
|
||||
Changed to use arrays to store deactivated/hidden windows and to
|
||||
keep track of key window when hidden. Watch window notifications
|
||||
to keep track of which window is key/main.
|
||||
to keep track of which window is key/main. Handle making window
|
||||
key and ordering front in modal sessions.
|
||||
|
||||
Sat Nov 20 6:56:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -742,8 +742,11 @@ static NSCell* tileCell = nil;
|
|||
* The NSWindow documentation says runModalForWindow centers panels.
|
||||
*/
|
||||
if ([theWindow isKindOfClass: [NSPanel class]])
|
||||
[theWindow center];
|
||||
{
|
||||
[theWindow center];
|
||||
}
|
||||
|
||||
[theWindow orderFrontRegardless];
|
||||
if ([self isActive] == YES)
|
||||
{
|
||||
if ([theWindow canBecomeKeyWindow] == YES)
|
||||
|
@ -755,7 +758,6 @@ static NSCell* tileCell = nil;
|
|||
[theWindow makeMainWindow];
|
||||
}
|
||||
}
|
||||
[theWindow orderFrontRegardless];
|
||||
|
||||
theSession = NULL;
|
||||
code = NSRunContinuesResponse;
|
||||
|
@ -802,6 +804,8 @@ static NSCell* tileCell = nil;
|
|||
format: @"runModalSession: with wrong session"];
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
[theSession->window orderFrontRegardless];
|
||||
if ([theSession->window canBecomeKeyWindow] == YES)
|
||||
{
|
||||
[theSession->window makeKeyWindow];
|
||||
|
|
Loading…
Reference in a new issue