Changeset 1263


Ignore:
Timestamp:
Jan 5, 2009, 1:01:29 PM (11 years ago)
Author:
dkearney
Message:

fix for bug regarding loader where <new> option no longer loads the new file.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r1246 r1263  
     1
     2 * Fixed bug regarding loaders using <new> tag where file was not loading
     3 * Fixes for Octave 3.0's print_help function
     4 * Adding rappture to OCTAVE_LOADPATH environment variable for octave 3.01
     5
     62008-12-10: nanovis 20081207 released
     72008-12-10: Rappture 20081205 released
     8
    192008-11-25:
    210
  • trunk/gui/scripts/loader.tcl

    r1253 r1263  
    9494        if {[file exists $fname]} {
    9595            set newfile $fname
     96
    9697            if {[catch {set obj [Rappture::library $fname]} result]} {
    9798                puts stderr "WARNING: can't load example file \"$fname\""
    9899                puts stderr "  $result"
    99100            } else {
    100                 $itk_component(combo) choices insert end $obj "New"
     101                set label "New"
     102                $itk_component(combo) choices insert end $obj $label
     103
     104                # if this is new, add it to the label->file hash
     105                if {![info exists entries($label)]} {
     106                    set entries($label) $obj
     107                    set _label2file($label) [file tail $fname]
     108                }
     109
    101110                # translate default file name => default label
    102111                if {[string equal $defval [file tail $fname]]} {
     
    199208                    }
    200209
    201                     # if this is new, add it
     210                    # if this is new, add it to the label->file hash
    202211                    if {![info exists entries($label)]} {
    203212                        set entries($label) $obj
Note: See TracChangeset for help on using the changeset viewer.