diff options
author | mdejong <mdejong> | 2002-06-13 06:17:21 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2002-06-13 06:17:21 (GMT) |
commit | e09ea8d1625280a5ae2d72d4410b7fb12acb1373 (patch) | |
tree | 5d8066453be4b1d16170803d1ae501fac752a956 /library/xmfbox.tcl | |
parent | 59e58c5dba92e6e16cbc586fec4c3375c6da5e15 (diff) | |
download | tk-e09ea8d1625280a5ae2d72d4410b7fb12acb1373.zip tk-e09ea8d1625280a5ae2d72d4410b7fb12acb1373.tar.gz tk-e09ea8d1625280a5ae2d72d4410b7fb12acb1373.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/xmfbox.tcl')
-rw-r--r-- | library/xmfbox.tcl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl index 53df5dc..74eff0e 100644 --- a/library/xmfbox.tcl +++ b/library/xmfbox.tcl @@ -4,7 +4,7 @@ # Unix platform. This implementation is used only if the # "::tk_strictMotif" flag is set. # -# RCS: @(#) $Id: xmfbox.tcl,v 1.21 2002/06/12 23:08:12 mdejong Exp $ +# RCS: @(#) $Id: xmfbox.tcl,v 1.22 2002/06/13 06:17:21 mdejong Exp $ # # Copyright (c) 1996 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Scriptics Corporation @@ -56,6 +56,13 @@ proc ::tk::MotifFDialog {type args} { vwait ::tk::Priv(selectFilePath) ::tk::RestoreFocusGrab $w $data(sEnt) withdraw + # Remove the transient property to insulate the + # dialog from changes in the master's state. + + if {[winfo exists $w]} { + wm transient $w {} + } + return $Priv(selectFilePath) } |