mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +00:00
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:
parent
1e0388751e
commit
5296afaafe
4 changed files with 564 additions and 554 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
1092
Source/NSSavePanel.m
1092
Source/NSSavePanel.m
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue