mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Added modalWindow in place of isRunningModalForWindow:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5028 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cb3cef1dcc
commit
5bff4d3081
1 changed files with 4 additions and 4 deletions
|
@ -566,12 +566,12 @@ NSApplication *NSApp = nil;
|
|||
return theSession->runState;
|
||||
}
|
||||
|
||||
- (BOOL) isRunningModalForWindow: (NSWindow *)theWindow
|
||||
- (NSWindow *) modalWindow
|
||||
{
|
||||
if ((session) && (session->window == theWindow))
|
||||
return YES;
|
||||
if (session)
|
||||
return (session->window);
|
||||
else
|
||||
return NO;
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) stop: (id)sender
|
||||
|
|
Loading…
Reference in a new issue