Commit 9a5a6add authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

[TARGET_API_MAC_CARBON] (create_and_show_dialog):

Create movable modal window instead of movable alert window.
[TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]: Use
DeactivateControl instead of DisableControl.
parent 025a24b5
......@@ -2460,11 +2460,11 @@ create_and_show_dialog (f, first_wv)
SetRect (&empty_rect, 0, 0, 0, 0);
/* Create dialog window. */
err = CreateNewWindow (kMovableAlertWindowClass,
err = CreateNewWindow (kMovableModalWindowClass,
kWindowStandardHandlerAttribute,
&empty_rect, &window);
if (err == noErr)
err = SetThemeWindowBackground (window, kThemeBrushAlertBackgroundActive,
err = SetThemeWindowBackground (window, kThemeBrushMovableModalBackground,
true);
if (err == noErr)
err = SetWindowTitleWithCFString (window, (dialog_name[0] == 'Q'
......@@ -2491,7 +2491,13 @@ create_and_show_dialog (f, first_wv)
if (err == noErr)
{
if (!wv->enabled)
err = DisableControl (buttons[i]);
{
#ifdef MAC_OSX
err = DisableControl (buttons[i]);
#else
err = DeactivateControl (buttons[i]);
#endif
}
else if (default_button == NULL)
default_button = buttons[i];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment