Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 606bf660b4cb1cf995a9a964737ba241994106d8
Ticket: 1177368fffffffffffffffffffffffffffffffff
tk_getOpenFile -multiple doesn't allow selecting multiple fi
User & Date: nobody on 2005-04-05 21:00:13
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here's a fix that patches the problem.
    
    To test, just do 
    
    tk_getOpenFile -multiple
    
    73a74
    > 
    84a86
    > 
    87a90
    > 
    100a104
    > 
    106a111
    >                 incr ind +1
    109c114
    <           for {} {$ind >= 0} {incr ind -1} {
    ---
    >           while {$ind >= 0} {
    112c117
    <                   set last $ind
    ---
    >                   set last $ind 
    114a120
    >                 incr ind -1
    116d121
    < 
    119a125
    > 
    120a127
    > 
    121a129
    > 
    122a131
    > 
    202c211543,544c552,566
    <     IconList_Selection $w clear 0 end
    <     IconList_Selection $w set $i
    ---
    > 
    >     set noset 0
    > 
    >     if { !$data(-multiple) } {
    >         IconList_Selection $w clear 0 end
    >     } else {
    >       if { [IconList_Selection $w includes $i] } {
    >           IconList_Selection $w clear $i $i
    >             set noset 1
    >       }
    >     }
    > 
    >     if { !$noset } {
    >         IconList_Selection $w set $i
    >     }
    550d571
    <     
    568c589
    <     
    ---
    >    
    579d599
    <       IconList_Selection $w clear 0 end
    586a607
    > 
    595c616,620
    <     IconList_Selection $w clear 0 end
    ---
    > 
    >     if { !$data(-multiple) } {
    >         IconList_Selection $w clear 0 end
    >     }
    > 
    596a622
    > 
    
    <       {-multiple "" "" "0"}
    ---
    >       {-multiple "" "" "1"}
    
    
    The version is -
    
    #
    # RCS: @(#) $Id: tkfbox.tcl,v 1.38.2.7 2004/09/10
    22:28:30 dkf Exp $
    #
    
    I don't know how this ever worked anywhere. Oh well.....
    
    Thanks.
    JCC
    chillhuman (at) excite (dot) com
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to:
    tk_getOpenFile -multiple doesn't allow selecting multiple fi
    
  11. type changed to: "Bug"