diff options
author | das <das> | 2002-08-30 18:18:11 (GMT) |
---|---|---|
committer | das <das> | 2002-08-30 18:18:11 (GMT) |
commit | 5ccf903c983e79875e8eb8ea04adabe117a23cee (patch) | |
tree | 4b6e9fd48d64642e47117e7151aee760afded773 /library/tk.tcl | |
parent | ea6da1ae5353546664b9c446808a68b1c552c6de (diff) | |
download | tk-5ccf903c983e79875e8eb8ea04adabe117a23cee.zip tk-5ccf903c983e79875e8eb8ea04adabe117a23cee.tar.gz tk-5ccf903c983e79875e8eb8ea04adabe117a23cee.tar.bz2 |
various project cleanups & enhancements
added macosx/Makefile to facilitate building from cli
added [tk windowingsystem] and removed $::tcl_plaform(windowingsystem)
changed all runtime library references to the above
removed duplicate entries in tk.decls & tkInt.decls
CONSTification and other small changes in macosx/ to remove compiler warnings
Diffstat (limited to 'library/tk.tcl')
-rw-r--r-- | library/tk.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/tk.tcl b/library/tk.tcl index 571c9c3..71e5b43 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.31.2.5 2002/08/21 12:28:55 das Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.31.2.6 2002/08/30 18:18:14 das Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -257,7 +257,7 @@ proc ::tk::ScreenChanged screen { selectMode char } set Priv(screen) $screen - set Priv(tearoff) [string equal $tcl_platform(windowingsystem) "x11"] + set Priv(tearoff) [string equal [tk windowingsystem] "x11"] set Priv(window) {} } @@ -333,7 +333,7 @@ if {[string equal [info command tk_chooseDirectory] ""]} { # Define the set of common virtual events. #---------------------------------------------------------------------- -switch $tcl_platform(windowingsystem) { +switch [tk windowingsystem] { "x11" { event add <<Cut>> <Control-Key-x> <Key-F20> event add <<Copy>> <Control-Key-c> <Key-F16> @@ -568,7 +568,7 @@ proc ::tk::mcmaxamp {args} { } # For now, turn off the custom mdef proc for the mac: -if {[string equal $tcl_platform(windowingsystem) "aqua"]} { +if {[string equal [tk windowingsystem] "aqua"]} { namespace eval ::tk::mac { set useCustomMDEF 0 } |