summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r--macosx/tkMacOSXDialog.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index b28b444..b0aff20 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -10,10 +10,10 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.4.2.15 2007/06/23 00:27:11 das Exp $
+ * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.4.2.16 2007/06/29 03:22:01 das Exp $
*/
-#include "tkMacOSXInt.h"
+#include "tkMacOSXPrivate.h"
#include "tkFileFilter.h"
#ifndef StrLength
@@ -774,8 +774,7 @@ NavServicesGetFile(
options.modality = kWindowModalityAppModal;
if (parent && ((TkWindow*)parent)->window != None &&
TkMacOSXHostToplevelExists(parent)) {
- options.parentWindow = GetWindowFromPort(TkMacOSXGetDrawablePort(
- Tk_WindowId(parent)));
+ options.parentWindow = TkMacOSXDrawableWindow(Tk_WindowId(parent));
TK_IF_HI_TOOLBOX (5,
/*
* Impossible to modify dialog modality with the Cocoa-based
@@ -1570,8 +1569,7 @@ Tk_MessageBoxObjCmd(
if (!handler) {
handler = NewEventHandlerUPP(AlertHandler);
}
- windowRef = GetWindowFromPort(TkMacOSXGetDrawablePort(
- Tk_WindowId(tkwin)));
+ windowRef = TkMacOSXDrawableWindow(Tk_WindowId(tkwin));
if (!windowRef) {
goto end;
}