diff options
author | dgp <dgp@users.sourceforge.net> | 2007-05-16 18:10:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-05-16 18:10:34 (GMT) |
commit | 2175fd4d04e6c0088b9adfac510d6b7603686997 (patch) | |
tree | 064a406739ab677cf5bcb77107f0e569b8f6a0fe /library | |
parent | 67e948d9e2500d26778cd5605eebc2b265e08900 (diff) | |
download | tk-2175fd4d04e6c0088b9adfac510d6b7603686997.zip tk-2175fd4d04e6c0088b9adfac510d6b7603686997.tar.gz tk-2175fd4d04e6c0088b9adfac510d6b7603686997.tar.bz2 |
* library/choosedir.tcl: Removed uses of obsolete {expand}
* library/comdlg.tcl: syntax; replaced with the now
* library/tk.tcl: approved {*}. [Bug 1710633]
* tests/canvImg.test:
* tests/imgPhoto.test:
Diffstat (limited to 'library')
-rw-r--r-- | library/choosedir.tcl | 4 | ||||
-rw-r--r-- | library/comdlg.tcl | 4 | ||||
-rw-r--r-- | library/tk.tcl | 22 |
3 files changed, 15 insertions, 15 deletions
diff --git a/library/choosedir.tcl b/library/choosedir.tcl index d5165f6..35cb4e8 100644 --- a/library/choosedir.tcl +++ b/library/choosedir.tcl @@ -5,7 +5,7 @@ # Copyright (c) 1998-2000 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: choosedir.tcl,v 1.19 2006/01/25 18:22:04 dgp Exp $ +# RCS: @(#) $Id: choosedir.tcl,v 1.20 2007/05/16 18:10:35 dgp Exp $ # Make sure the tk::dialog namespace, in which all dialogs should live, exists namespace eval ::tk::dialog {} @@ -212,7 +212,7 @@ proc ::tk::dialog::file::chooseDir::OkCmd {w} { if {$text eq ""} { return } - set text [file join {expand}[file split [string trim $text]]] + set text [file join {*}[file split [string trim $text]]] if {![file exists $text] || ![file isdirectory $text]} { # Entry contains an invalid directory. If it's the same as the # last time they came through here, reset the saved value and end diff --git a/library/comdlg.tcl b/library/comdlg.tcl index dd8c599..6190fa3 100644 --- a/library/comdlg.tcl +++ b/library/comdlg.tcl @@ -3,7 +3,7 @@ # Some functions needed for the common dialog boxes. Probably need to go # in a different file. # -# RCS: @(#) $Id: comdlg.tcl,v 1.13 2006/01/25 18:22:04 dgp Exp $ +# RCS: @(#) $Id: comdlg.tcl,v 1.14 2007/05/16 18:10:35 dgp Exp $ # # Copyright (c) 1996 Sun Microsystems, Inc. # @@ -259,7 +259,7 @@ proc ::tk::FDGetFileTypes {string} { if {[llength $t] < 2 || [llength $t] > 3} { error "bad file type \"$t\", should be \"typeName {extension ?extensions ...?} ?{macType ?macTypes ...?}?\"" } - lappend fileTypes([lindex $t 0]) {expand}[lindex $t 1] + lappend fileTypes([lindex $t 0]) {*}[lindex $t 1] } set types {} diff --git a/library/tk.tcl b/library/tk.tcl index 9eec59b..d5fae6a 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.61 2007/04/23 21:16:43 das Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.62 2007/05/16 18:10:35 dgp Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -25,7 +25,7 @@ namespace eval ::tk { # The msgcat package is not available. Supply our own # minimal replacement. proc mc {src args} { - return [format $src {expand}$args] + return [format $src {*}$args] } proc mcmax {args} { set max 0 @@ -316,35 +316,35 @@ proc ::tk::EventMotifBindings {n1 dummy dummy} { if {![llength [info commands tk_chooseColor]]} { proc ::tk_chooseColor {args} { - return [tk::dialog::color:: {expand}$args] + return [tk::dialog::color:: {*}$args] } } if {![llength [info commands tk_getOpenFile]]} { proc ::tk_getOpenFile {args} { if {$::tk_strictMotif} { - return [tk::MotifFDialog open {expand}$args] + return [tk::MotifFDialog open {*}$args] } else { - return [::tk::dialog::file:: open {expand}$args] + return [::tk::dialog::file:: open {*}$args] } } } if {![llength [info commands tk_getSaveFile]]} { proc ::tk_getSaveFile {args} { if {$::tk_strictMotif} { - return [tk::MotifFDialog save {expand}$args] + return [tk::MotifFDialog save {*}$args] } else { - return [::tk::dialog::file:: save {expand}$args] + return [::tk::dialog::file:: save {*}$args] } } } if {![llength [info commands tk_messageBox]]} { proc ::tk_messageBox {args} { - return [tk::MessageBox {expand}$args] + return [tk::MessageBox {*}$args] } } if {![llength [info command tk_chooseDirectory]]} { proc ::tk_chooseDirectory {args} { - return [::tk::dialog::file::chooseDir:: {expand}$args] + return [::tk::dialog::file::chooseDir:: {*}$args] } } @@ -506,7 +506,7 @@ proc ::tk::AmpWidget {class path args} { lappend options $opt $val } } - set result [$class $path {expand}$options] + set result [$class $path {*}$options] if {$class eq "button"} { bind $path <<AltUnderlined>> [list $path invoke] } @@ -527,7 +527,7 @@ proc ::tk::AmpMenuArgs {widget add type args} { lappend options $opt $val } } - $widget add $type {expand}$options + $widget add $type {*}$options } # ::tk::FindAltKeyTarget -- |