summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-13 02:58:12 (GMT)
committerhobbs <hobbs>1999-08-13 02:58:12 (GMT)
commitda4448f791ae3a412747655b02f09a7824e8c791 (patch)
treee460cfa407204b8e324bb24f0d527361e8241f13 /library
parent98f373adc4894bd5ac1bc0cef85afba791838cef (diff)
downloadtk-da4448f791ae3a412747655b02f09a7824e8c791.zip
tk-da4448f791ae3a412747655b02f09a7824e8c791.tar.gz
tk-da4448f791ae3a412747655b02f09a7824e8c791.tar.bz2
*** empty log message ***
Diffstat (limited to 'library')
-rw-r--r--library/tk.tcl12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index 90e9f66..ae68609 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -3,7 +3,7 @@
# Initialization script normally executed in the interpreter for each
# Tk-based application. Arranges class bindings for widgets.
#
-# RCS: @(#) $Id: tk.tcl,v 1.9 1999/08/10 15:27:49 hobbs Exp $
+# RCS: @(#) $Id: tk.tcl,v 1.10 1999/08/13 02:58:17 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -20,10 +20,9 @@ package require -exact Tcl 8.2
# Add Tk's directory to the end of the auto-load search path, if it
# isn't already on the path:
-if {[info exists auto_path]} {
- if {[lsearch -exact $auto_path $tk_library] < 0} {
- lappend auto_path $tk_library
- }
+if {[info exists auto_path] && [string compare {} $tk_library] && \
+ [lsearch -exact $auto_path $tk_library] < 0} {
+ lappend auto_path $tk_library
}
# Turn off strict Motif look and feel as a default.
@@ -181,7 +180,8 @@ switch $tcl_platform(platform) {
# Read in files that define all of the class bindings.
# ----------------------------------------------------------------------
-if {[string compare $tcl_platform(platform) "macintosh"]} {
+if {[string compare $tcl_platform(platform) "macintosh"] &&
+ [string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
source [file join $tk_library entry.tcl]
source [file join $tk_library listbox.tcl]