Minor tidying

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4914 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-09-20 04:41:47 +00:00
parent 1e0388751e
commit 5296afaafe
4 changed files with 564 additions and 554 deletions

View file

@ -1,3 +1,18 @@
Mon Sep 20 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSPanel.m: Remove unnecessary -center messages.
* Source/NSApplication.m: Add explanatory comment about centering.
Mon Sep 20 1999 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSApplication.m ([-runModalForWindow:]): Automatically
invoke [-center] on the window, if the window is a panel.
(following the spec for NSWindow's center method.)
* Source/NSSavePanel.m ([-runModalForDirectory:path:filename]):
Simplified, removed some useless comands: NSApplication's
-runModalForWindow: already both centers and
makeKeyAndOrderFronts the panel, as required by the specs.
Sat Sep 18 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: Applied N. Pero's fix for lockFocus.

View file

@ -423,6 +423,12 @@ NSApplication *NSApp = nil;
static NSModalSession theSession;
static int code;
/*
* The NSWindow documentation says runModalForWindow centers panels.
*/
if ([theWindow isKindOfClass: [NSPanel class]])
[theWindow center];
theSession = NULL;
code = NSRunContinuesResponse;

View file

@ -557,7 +557,6 @@ NSGetAlertPanel(NSString *title,
backing: NSBackingStoreRetained
defer: YES
screen: nil];
[panel center];
#endif
}
@ -691,7 +690,6 @@ NSRunAlertPanel(NSString *title,
standardAlertPanel = panel;
}
[panel center];
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
@ -716,7 +714,6 @@ NSRunCriticalAlertPanel(NSString *title,
defaultButton, alternateButton, otherButton, ap);
va_end (ap);
[panel center];
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
@ -741,7 +738,6 @@ NSRunInformationalAlertPanel(NSString *title,
defaultButton, alternateButton, otherButton, ap);
va_end (ap);
[panel center];
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];
@ -807,7 +803,6 @@ NSRunLocalizedAlertPanel(NSString *table,
standardAlertPanel = panel;
}
[panel center];
if ([NSApp isActive])
[panel makeKeyWindow];
[panel orderFrontRegardless];

File diff suppressed because it is too large Load diff