summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
diff options
context:
space:
mode:
authormdejong <mdejong>2002-06-13 06:17:21 (GMT)
committermdejong <mdejong>2002-06-13 06:17:21 (GMT)
commit00eb28810aae93e396001907717682efb48960d4 (patch)
tree5d8066453be4b1d16170803d1ae501fac752a956 /library/tkfbox.tcl
parent1f8f56c938ebe9865f17d61ef79173662698fc2f (diff)
downloadtk-00eb28810aae93e396001907717682efb48960d4.zip
tk-00eb28810aae93e396001907717682efb48960d4.tar.gz
tk-00eb28810aae93e396001907717682efb48960d4.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/tkfbox.tcl')
-rw-r--r--library/tkfbox.tcl9
1 files changed, 8 insertions, 1 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl
index 6d7ce2f..0255cad 100644
--- a/library/tkfbox.tcl
+++ b/library/tkfbox.tcl
@@ -11,7 +11,7 @@
# files by clicking on the file icons or by entering a filename
# in the "Filename:" entry.
#
-# RCS: @(#) $Id: tkfbox.tcl,v 1.35 2002/06/12 23:08:12 mdejong Exp $
+# RCS: @(#) $Id: tkfbox.tcl,v 1.36 2002/06/13 06:17:21 mdejong Exp $
#
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
#
@@ -878,6 +878,13 @@ proc ::tk::dialog::file:: {type args} {
::tk::RestoreFocusGrab $w $data(ent) withdraw
+ # Remove the transient property to insulate the
+ # dialog from changes in the master's state.
+
+ if {[winfo exists $w]} {
+ wm transient $w {}
+ }
+
# Cleanup traces on selectPath variable
#