diff options
author | mdejong <mdejong> | 2002-06-13 06:17:21 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2002-06-13 06:17:21 (GMT) |
commit | 921391f5555439afe693af68ea0e59f6739857e3 (patch) | |
tree | 5d8066453be4b1d16170803d1ae501fac752a956 /library/msgbox.tcl | |
parent | 112d73736a141f82b4c746ff46a56a37102f757a (diff) | |
download | tk-921391f5555439afe693af68ea0e59f6739857e3.zip tk-921391f5555439afe693af68ea0e59f6739857e3.tar.gz tk-921391f5555439afe693af68ea0e59f6739857e3.tar.bz2 |
* library/choosedir.tcl (tk::dialog::file::chooseDir):
* library/clrpick.tcl (tk::dialog::file::chooseDir):
* library/msgbox.tcl (tk::MessageBox):
* library/tkfbox.tcl (tk::dialog::file):
* library/xmfbox.tcl (tk::MotifFDialog): Remove the
transient property on dialogs after they have been
dismissed to insulate them from further state changes
in the master. This keeps a withdrawn dialog from
being mapped when the master is deiconified. [Tk patch 568278]
Diffstat (limited to 'library/msgbox.tcl')
-rw-r--r-- | library/msgbox.tcl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/msgbox.tcl b/library/msgbox.tcl index bd62167..4208d2c 100644 --- a/library/msgbox.tcl +++ b/library/msgbox.tcl @@ -3,7 +3,7 @@ # Implements messageboxes for platforms that do not have native # messagebox support. # -# RCS: @(#) $Id: msgbox.tcl,v 1.19 2002/06/12 23:08:12 mdejong Exp $ +# RCS: @(#) $Id: msgbox.tcl,v 1.20 2002/06/13 06:17:21 mdejong Exp $ # # Copyright (c) 1994-1997 Sun Microsystems, Inc. # @@ -404,5 +404,12 @@ proc ::tk::MessageBox {args} { ::tk::RestoreFocusGrab $w $focus + # Remove the transient property to insulate the + # dialog from changes in the master's state. + + if {[winfo exists $w]} { + wm transient $w {} + } + return $Priv(button) } |