Minor fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5132 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-11-04 16:34:15 +00:00
parent 627e3975d3
commit 52d581de8f
3 changed files with 12 additions and 16 deletions

View file

@ -1,3 +1,10 @@
Thu Nov 4 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSApplication.m: ([-runModalforWindow:]) make the window key
and order to front as specified in MacOS-X docs.
* Source/NSPanel.m: Remove redundant code from alert panels -
now done in NSApplication.
Tue Nov 2 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSMatrix.m: Complete rewrite of code for handling cells

View file

@ -612,6 +612,10 @@ static NSCell* tileCell = nil;
if ([theWindow isKindOfClass: [NSPanel class]])
[theWindow center];
if ([self isActive])
[theWindow makeKeyWindow];
[theWindow orderFrontRegardless];
theSession = NULL;
code = NSRunContinuesResponse;

View file

@ -434,11 +434,8 @@ static GSAlertPanel *gmodelAlertPanel = nil;
- (int) runModal
{
NSApplication *app;
app = [NSApplication sharedApplication];
active = YES;
[app runModalForWindow: self];
[NSApp runModalForWindow: self];
return result;
}
@ -690,9 +687,6 @@ NSRunAlertPanel(NSString *title,
standardAlertPanel = panel;
}
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -714,9 +708,6 @@ NSRunCriticalAlertPanel(NSString *title,
defaultButton, alternateButton, otherButton, ap);
va_end (ap);
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -738,9 +729,6 @@ NSRunInformationalAlertPanel(NSString *title,
defaultButton, alternateButton, otherButton, ap);
va_end (ap);
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -803,9 +791,6 @@ NSRunLocalizedAlertPanel(NSString *table,
standardAlertPanel = panel;
}
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;