summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-07 21:30:29 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-07 21:30:29 (GMT)
commit4f5022ea5cf90bf6a494ce138f5c9db94ca3256e (patch)
treea560f794434437e227087c4687b28eb901682d73 /win/tkWinDialog.c
parenta3e6185ea5f40a91ad350000fea07913e69e7c3f (diff)
downloadtk-4f5022ea5cf90bf6a494ce138f5c9db94ca3256e.zip
tk-4f5022ea5cf90bf6a494ce138f5c9db94ca3256e.tar.gz
tk-4f5022ea5cf90bf6a494ce138f5c9db94ca3256e.tar.bz2
correction
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index ce23703..c275f68 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -2371,6 +2371,9 @@ Tk_MessageBoxObjCmd(
}
}
+ while (!Tk_IsTopLevel(parent)) {
+ parent = Tk_Parent(parent);
+ }
Tk_MakeWindowExist(parent);
hWnd = Tk_GetHWND(Tk_WindowId(parent));