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:
Gregory John Casamento 2009-04-16 20:05:32 +00:00
parent 28b6cc14d0
commit e66027b906
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>
* Source/NSAlert.m: Order front regardless to prevent reported
@ -8,9 +12,9 @@
* Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
the instance of the typesetter for that thread.
* Source/NSStringDrawing.m: Add locks to methods to prevent modification
of static variables by separate threads from causing the application
to get glyph generation errors.
* Source/NSStringDrawing.m: Add locks to methods to prevent
modification of static variables by separate threads from
causing applications to get glyph generation errors.
NOTE: These changes based on suggestions/ideas from Doug
Simons <doug@riverrock.org>.

View file

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