Changeset 6313
- Timestamp:
- May 4, 2016, 11:27:36 AM (9 years ago)
- Location:
- branches/1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/gui/scripts/loader.tcl
r6024 r6313 246 246 set str [string trim [$_owner xml get $path.default]] 247 247 if { $str != "" } { 248 bind $itk_component(hull) <Map> [itcl::code $this SetDefaultValue $str]248 SetDefaultValue $str 249 249 } 250 250 } … … 326 326 # SetDefaultValue -- 327 327 # 328 # Sets the designated default value for the loader. This must be done 329 # after the entire application is assembled, otherwise the default 330 # values set up by the loader will be overwritten by the various widgets 331 # themselves when they try to set their default values. 332 # 333 # This is called from a <Map> event to the loader (combobox). This 334 # will get trigger the first time the loader is displayed. The binding 335 # is then removed. 328 # Sets the designated default value for the loader. This must be done 329 # after the entire application is assembled, otherwise the default values 330 # set up by the loader will be overwritten by the various widgets 331 # themselves when they try to set their default values. 336 332 # 337 333 itcl::body Rappture::Loader::SetDefaultValue { value } { 338 after idle [itcl::code $this value $value] 339 # We're done. Remove the binding. 340 bind $itk_component(hull) <Map> {} 334 after 100 [itcl::code $this value $value] 341 335 } 342 336 -
branches/1.7/src/core/RpLibrary.cc
r5679 r6313 1791 1791 1792 1792 // check for binary data 1793 // FIXME: I've already appended a NUL-byte ofthis assuming that1793 // FIXME: I've already appended a NUL-byte to this assuming that 1794 1794 // it's a ASCII string. This test must come before. 1795 1795 if (Rappture::encoding::isBinary(value.c_str(), value.length())) { … … 2047 2047 return *this; 2048 2048 } 2049 if (compress == RPLIB_COMPRESS) { 2049 if ((compress == RPLIB_COMPRESS) || 2050 (Rappture::encoding::isBinary(fileBuf.bytes(), fileBuf.size()))) { 2050 2051 putData(path, fileBuf.bytes(), fileBuf.size(), append); 2051 2052 } else {
Note: See TracChangeset
for help on using the changeset viewer.