Revert previous change.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28225 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-04-16 20:05:32 +00:00
parent e13e7a38a5
commit d1db66cd7c
2 changed files with 7 additions and 17 deletions

View file

@ -1,3 +1,7 @@
2009-04-16 16:05-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSAlert.m: Revert last change.
2009-04-16 15:02-EDT Gregory John Casamento <greg.casamento@gmail.com> 2009-04-16 15:02-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSAlert.m: Order front regardless to prevent reported * Source/NSAlert.m: Order front regardless to prevent reported
@ -8,9 +12,9 @@
* Source/GSHorizontalTypesetter.m: Use thread dictionary to hold * Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
the instance of the typesetter for that thread. the instance of the typesetter for that thread.
* Source/NSStringDrawing.m: Add locks to methods to prevent modification * Source/NSStringDrawing.m: Add locks to methods to prevent
of static variables by separate threads from causing the application modification of static variables by separate threads from
to get glyph generation errors. causing applications to get glyph generation errors.
NOTE: These changes based on suggestions/ideas from Doug NOTE: These changes based on suggestions/ideas from Doug
Simons <doug@riverrock.org>. Simons <doug@riverrock.org>.

View file

@ -1108,8 +1108,6 @@ NSRunAlertPanel(
panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message, panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
result = [panel runModal]; result = [panel runModal];
NSReleaseAlertPanel(panel); NSReleaseAlertPanel(panel);
return result; return result;
@ -1157,8 +1155,6 @@ NSRunLocalizedAlertPanel(
panel = getSomePanel(&standardAlertPanel, @"Alert", title, message, panel = getSomePanel(&standardAlertPanel, @"Alert", title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
result = [panel runModal]; result = [panel runModal];
NSReleaseAlertPanel(panel); NSReleaseAlertPanel(panel);
return result; return result;
@ -1205,8 +1201,6 @@ NSRunCriticalAlertPanel(
panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message, panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
result = [panel runModal]; result = [panel runModal];
NSReleaseAlertPanel(panel); NSReleaseAlertPanel(panel);
return result; return result;
@ -1254,8 +1248,6 @@ NSRunInformationalAlertPanel(
@"Information", @"Information",
title, message, title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
result = [panel runModal]; result = [panel runModal];
NSReleaseAlertPanel(panel); NSReleaseAlertPanel(panel);
return result; return result;
@ -1302,8 +1294,6 @@ void NSBeginAlertSheet(NSString *title,
panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message, panel = getSomePanel(&standardAlertPanel, defaultTitle, title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
// FIXME: We should also change the button action to call endSheet: // FIXME: We should also change the button action to call endSheet:
[NSApp beginSheet: panel [NSApp beginSheet: panel
modalForWindow: docWindow modalForWindow: docWindow
@ -1343,8 +1333,6 @@ void NSBeginCriticalAlertSheet(NSString *title,
panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message, panel = getSomePanel(&criticalAlertPanel, @"Critical", title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
// FIXME: We should also change the button action to call endSheet: // FIXME: We should also change the button action to call endSheet:
[NSApp beginSheet: panel [NSApp beginSheet: panel
modalForWindow: docWindow modalForWindow: docWindow
@ -1386,8 +1374,6 @@ void NSBeginInformationalAlertSheet(NSString *title,
@"Information", @"Information",
title, message, title, message,
defaultButton, alternateButton, otherButton); defaultButton, alternateButton, otherButton);
[panel orderFrontRegardless];
// FIXME: We should also change the button action to call endSheet: // FIXME: We should also change the button action to call endSheet:
[NSApp beginSheet: panel [NSApp beginSheet: panel
modalForWindow: docWindow modalForWindow: docWindow