mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +00:00
Correct issue with sheets/panels appearing beneath other modal panels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28224 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a14429a2df
commit
e13e7a38a5
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-04-16 15:02-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSAlert.m: Order front regardless to prevent reported
|
||||||
|
cases of problems when sheets/panels bring up additional
|
||||||
|
sheets/panels.
|
||||||
|
|
||||||
2009-04-14 21:24-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
2009-04-14 21:24-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
|
* Source/GSHorizontalTypesetter.m: Use thread dictionary to hold
|
||||||
|
|
|
@ -1108,6 +1108,8 @@ 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;
|
||||||
|
@ -1155,6 +1157,8 @@ 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;
|
||||||
|
@ -1201,6 +1205,8 @@ 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;
|
||||||
|
@ -1248,6 +1254,8 @@ 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;
|
||||||
|
@ -1294,7 +1302,8 @@ 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
|
||||||
|
@ -1334,6 +1343,7 @@ 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
|
||||||
|
@ -1376,6 +1386,7 @@ 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue