summaryrefslogtreecommitdiffstats
path: root/library/safetk.tcl
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2005-07-25 09:05:59 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2005-07-25 09:05:59 (GMT)
commitb7f3fe0786b1f6492a7e5d674522aae7caad7a9d (patch)
tree500381c93622d097f72623503a4192b8a2313845 /library/safetk.tcl
parentd08d277e0ffafe8c50c913ed6c83a74070542ae7 (diff)
downloadtk-b7f3fe0786b1f6492a7e5d674522aae7caad7a9d.zip
tk-b7f3fe0786b1f6492a7e5d674522aae7caad7a9d.tar.gz
tk-b7f3fe0786b1f6492a7e5d674522aae7caad7a9d.tar.bz2
Apply some of the changes suggested in [Patch 1237759]
Diffstat (limited to 'library/safetk.tcl')
-rw-r--r--library/safetk.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/safetk.tcl b/library/safetk.tcl
index 1993ade..5a14dde 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.8 2000/10/31 01:11:51 hobbs Exp $
+# RCS: @(#) $Id: safetk.tcl,v 1.9 2005/07/25 09:06:00 dkf Exp $
#
# Copyright (c) 1997 Sun Microsystems, Inc.
#
@@ -126,7 +126,7 @@ proc ::safe::loadTk {} {}
set nDisplay $display
}
}
- if {[string compare $nDisplay $display]} {
+ if {$nDisplay ne $display} {
if {$displayGiven} {
error "conflicting -display $display and -use\
$use -> $nDisplay"