diff options
author | hobbs <hobbs> | 2000-03-31 09:24:11 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-03-31 09:24:11 (GMT) |
commit | b6e815a78d530ea2de673fd5df7b83e08bcfca25 (patch) | |
tree | 57e934ce1272a995275eac17554aa82bf3637924 /library/tkfbox.tcl | |
parent | 50101abe09329eb91d99c0c501494179e8ae5b47 (diff) | |
download | tk-b6e815a78d530ea2de673fd5df7b83e08bcfca25.zip tk-b6e815a78d530ea2de673fd5df7b83e08bcfca25.tar.gz tk-b6e815a78d530ea2de673fd5df7b83e08bcfca25.tar.bz2 |
* library/menu.tcl (tkMenuInvoke): corrected naming of tearoffs
[Bug: 4506]
* library/tkfbox.tcl (tkIconList_Goto): caused browsecmd to be
called in tkIconList_Select. This causes the entry to be set
properly when using the type-in-name-in-listbox bindings.
Diffstat (limited to 'library/tkfbox.tcl')
-rw-r--r-- | library/tkfbox.tcl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl index 6090288..42c330d 100644 --- a/library/tkfbox.tcl +++ b/library/tkfbox.tcl @@ -11,7 +11,7 @@ # files by clicking on the file icons or by entering a filename # in the "Filename:" entry. # -# RCS: @(#) $Id: tkfbox.tcl,v 1.17 2000/03/29 00:09:06 ericm Exp $ +# RCS: @(#) $Id: tkfbox.tcl,v 1.18 2000/03/31 09:24:12 hobbs Exp $ # # Copyright (c) 1994-1998 Sun Microsystems, Inc. # @@ -298,7 +298,7 @@ proc tkIconList_Arrange {w} { set data(itemsPerColumn) 1 } - if {[string compare $data(curItem) {}]} { + if {$data(curItem) != ""} { tkIconList_Select $w [lindex [lindex $data(list) $data(curItem)] 2] 0 } } @@ -309,7 +309,7 @@ proc tkIconList_Arrange {w} { proc tkIconList_Invoke {w} { upvar #0 $w data - if {[string compare $data(-command) ""] && [info exists data(selected)]} { + if {$data(-command) != "" && [info exists data(selected)]} { uplevel #0 $data(-command) } } @@ -397,7 +397,7 @@ proc tkIconList_Select {w rTag {callBrowse 1}} { set data(curItem) $serial set data(selected) $text - if {$callBrowse && [string compare $data(-browsecmd) ""]} { + if {$callBrowse && $data(-browsecmd) != ""} { eval $data(-browsecmd) [list $text] } } @@ -571,7 +571,7 @@ proc tkIconList_Goto {w text} { return } - if {[string equal $data(curItem) {}] || $data(curItem) == 0} { + if {$data(curItem) == "" || $data(curItem) == 0} { set start 0 } else { set start $data(curItem) @@ -586,7 +586,7 @@ proc tkIconList_Goto {w text} { # Search forward until we find a filename whose prefix is an exact match # with $text - while 1 { + while {1} { set sub [string range $textList($i) 0 $len0] if {[string equal $text $sub]} { set theIndex $i @@ -603,7 +603,7 @@ proc tkIconList_Goto {w text} { if {$theIndex > -1} { set rTag [lindex [lindex $data(list) $theIndex] 2] - tkIconList_Select $w $rTag 0 + tkIconList_Select $w $rTag tkIconList_See $w $rTag } } |