Ignore:
Timestamp:
Apr 9, 2008, 11:41:19 AM (17 years ago)
Author:
dkearney
Message:

reverting boolean fixes because they end up breaking old applications, we'll fix this again in rappture2 i guess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/booleanentry.tcl

    r880 r995  
    5252    # hints in the XML.
    5353    #
    54     set defaultVal [$_owner xml get $path.default]
    5554    itk_component add switch {
    56         Rappture::Switch $itk_interior.switch $defaultVal
     55        Rappture::Switch $itk_interior.switch
    5756    }
    5857    pack $itk_component(switch) -expand yes -fill both
     
    7675    # Assign the default value to this widget, if there is one.
    7776    #
    78     if {"" != $defaultVal} {
    79         $itk_component(switch) value $defaultVal
     77    set str [$_owner xml get $path.default]
     78    if {"" != $str} {
     79        $itk_component(switch) value $str
    8080    } else {
    8181        $itk_component(switch) value off
Note: See TracChangeset for help on using the changeset viewer.