diff options
author | hobbs <hobbs> | 2005-10-05 04:14:10 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-10-05 04:14:10 (GMT) |
commit | ebaf2538558086d8a3749809e5863e1b134f19ab (patch) | |
tree | 01a7f042322a76b2b4ce13fe81b4c9a3f0141a17 /library/dialog.tcl | |
parent | a956e44e843d8bedaeec0cf7e83bfc9a530ecee0 (diff) | |
download | tk-ebaf2538558086d8a3749809e5863e1b134f19ab.zip tk-ebaf2538558086d8a3749809e5863e1b134f19ab.tar.gz tk-ebaf2538558086d8a3749809e5863e1b134f19ab.tar.bz2 |
* library/dialog.tcl (::tk_dialog): add tkwait visibility before
grab. [Bug 1216775]
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r-- | library/dialog.tcl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl index 2c5830d..92d9770 100644 --- a/library/dialog.tcl +++ b/library/dialog.tcl @@ -3,7 +3,7 @@ # This file defines the procedure tk_dialog, which creates a dialog # box containing a bitmap, a message, and one or more buttons. # -# RCS: @(#) $Id: dialog.tcl,v 1.18 2005/07/25 09:06:01 dkf Exp $ +# RCS: @(#) $Id: dialog.tcl,v 1.19 2005/10/05 04:14:10 hobbs Exp $ # # Copyright (c) 1992-1993 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -63,7 +63,7 @@ proc ::tk_dialog {w title text bitmap default args} { # if {[winfo viewable [winfo toplevel [winfo parent $w]]] } { wm transient $w [winfo toplevel [winfo parent $w]] - } + } if {[tk windowingsystem] eq "aqua"} { ::tk::unsupported::MacWindowStyle style $w dBoxProc @@ -164,6 +164,8 @@ proc ::tk_dialog {w title text bitmap default args} { wm geometry $w +$x+$y wm deiconify $w + tkwait visibility $w + # 7. Set a grab and claim the focus too. set oldFocus [focus] |