diff options
author | hobbs <hobbs> | 2000-04-08 06:59:28 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-04-08 06:59:28 (GMT) |
commit | 64f72adf2f30daf0b524c3f2fae31821902281a1 (patch) | |
tree | b66b4a994059e6ce1c4115f7f1e5afde35e24f2b /library/safetk.tcl | |
parent | 477cd1d5477c6487a7fde0d13710449e23b7d8e5 (diff) | |
download | tk-64f72adf2f30daf0b524c3f2fae31821902281a1.zip tk-64f72adf2f30daf0b524c3f2fae31821902281a1.tar.gz tk-64f72adf2f30daf0b524c3f2fae31821902281a1.tar.bz2 |
* library/safetk.tcl (disallowTk): made disallowTk work in the
simple case.
* library/comdlg.tcl (tkFocusGroup_In): fixed key navigation
problems in dialogs under CDE [Bug: 2960]
Diffstat (limited to 'library/safetk.tcl')
-rw-r--r-- | library/safetk.tcl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/library/safetk.tcl b/library/safetk.tcl index e732932..b2e0c02 100644 --- a/library/safetk.tcl +++ b/library/safetk.tcl @@ -2,7 +2,7 @@ # # Support procs to use Tk in safe interpreters. # -# RCS: @(#) $Id: safetk.tcl,v 1.5 1999/09/02 17:02:53 hobbs Exp $ +# RCS: @(#) $Id: safetk.tcl,v 1.6 2000/04/08 06:59:28 hobbs Exp $ # # Copyright (c) 1997 Sun Microsystems, Inc. # @@ -185,12 +185,15 @@ proc ::safe::allowTk {interpPath argv} { proc ::safe::disallowTk {interpPath} { variable tkInit - unset tkInit($interpPath) - none + # This can already be deleted by the DeleteHook of the interp + if {[info exists tkInit($interpPath)]} { + unset tkInit($interpPath) + } + return } -# safe::disallowTk -- +# safe::tkDelete -- # # Clean up the window associated with the interp being deleted. # |