Changeset 1081 for trunk/gui


Ignore:
Timestamp:
Jul 31, 2008 9:20:59 AM (16 years ago)
Author:
gah
Message:

fix for perl, ruby bindings; visviewer SendBytes? method sends all data at once

Location:
trunk/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/apps/rappture.env.in

    r1080 r1081  
    2929export TCLLIBPATH="$RAPPTURE_INSTALL_DIR/lib/vtk $TCLLIBPATH"
    3030export TK_LIBRARY=$RAPPTURE_INSTALL_DIR/lib/tk8.4:$RAPPTURE_INSTALL_DIR/lib64/tk8.4:$TK_LIBRARY
    31 export RUBYLIB=$RAPPTURE_INSTALL_DIR/lib/ruby/ruby_site:$RUBYLIB
     31export RUBYLIB=$RAPPTURE_INSTALL_DIR/lib/ruby/ruby_site:$RAPPTURE_INSTALL_DIR/lib64/ruby/ruby_site:$RUBY_LIB
     32
  • trunk/gui/scripts/nanovisviewer.tcl

    r1069 r1081  
    758758        append _outbuf $string "\n"
    759759    } else {
    760         if {[SendBytes $string]} {
    761             foreach line [split $string \n] {
    762                 SendEcho >>line $line
    763             }
    764         }
     760        foreach line [split $string \n] {
     761            SendEcho >>line $line
     762        }
     763        SendBytes $string
    765764    }
    766765}
  • trunk/gui/scripts/visviewer.tcl

    r1013 r1081  
    4444    private method _ServerDown {}
    4545    private method _SendHelper {}
     46    private method _SendHelper.old {}
    4647
    4748    protected method SendEcho { channel {data ""} }
     
    277278#
    278279itcl::body Rappture::VisViewer::_SendHelper {} {
     280    puts $_sid $_buffer(out)
     281    flush $_sid
     282    set _done($this) 1;         # Success
     283}
     284
     285itcl::body Rappture::VisViewer::_SendHelper.old {} {
    279286    set bytesLeft [string length $_buffer(out)]
    280287    if { $bytesLeft > 0} {
Note: See TracChangeset for help on using the changeset viewer.