diff options
Diffstat (limited to 'ext/tk/sample/tkextlib/tktable')
| -rw-r--r-- | ext/tk/sample/tkextlib/tktable/basic.rb | 4 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/tktable/command.rb | 4 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/tktable/debug.rb | 2 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/tktable/maxsize.rb | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/sample/tkextlib/tktable/basic.rb b/ext/tk/sample/tkextlib/tktable/basic.rb index ece46b318..0d2d48893 100644 --- a/ext/tk/sample/tkextlib/tktable/basic.rb +++ b/ext/tk/sample/tkextlib/tktable/basic.rb @@ -29,11 +29,11 @@ table = Tk::TkTable.new(:rows=>rows, :cols=>cols, :variable=>ary, :rowstretchmode=>:last, :colstretchmode=>:last, :rowtagcommand=>proc{|row| row = Integer(row) - return 'OddRow' if row>0 && row%2 == 1 + (row>0 && row%2 == 1)? 'OddRow': '' }, :coltagcommand=>proc{|col| col = Integer(col) - return 'OddCol' if col>0 && col%2 == 1 + (col>0 && col%2 == 1)? 'OddCol': '' }, :selectmode=>:extended, :sparsearray=>false) diff --git a/ext/tk/sample/tkextlib/tktable/command.rb b/ext/tk/sample/tkextlib/tktable/command.rb index eb9ddffb7..bf36159cc 100644 --- a/ext/tk/sample/tkextlib/tktable/command.rb +++ b/ext/tk/sample/tkextlib/tktable/command.rb @@ -45,11 +45,11 @@ table = Tk::TkTable.new(:rows=>rows, :cols=>cols, :rowstretchmode=>:last, :colstretchmode=>:last, :rowtagcommand=>proc{|row| row = Integer(row) - return 'OddRow' if row>0 && row%2 == 1 + (row>0 && row%2 == 1)? 'OddRow': '' }, :coltagcommand=>proc{|col| col = Integer(col) - return 'OddCol' if col>0 && col%2 == 1 + (col>0 && col%2 == 1)? 'OddCol': '' }, :selectmode=>:extended, :flashmode=>true, :rowstretch=>:unset, :colstretch=>:unset, diff --git a/ext/tk/sample/tkextlib/tktable/debug.rb b/ext/tk/sample/tkextlib/tktable/debug.rb index 3200c1c77..d5cd5e49b 100644 --- a/ext/tk/sample/tkextlib/tktable/debug.rb +++ b/ext/tk/sample/tkextlib/tktable/debug.rb @@ -29,7 +29,7 @@ table = Tk::TkTable.new(:rows=>rows, :cols=>cols, :variable=>ary, :roworigin=>-5, :colorigin=>-2, :coltagcommand=>proc{|col| col = Integer(col) - return 'OddCol' if col>0 && col%2 == 1 + (col>0 && col%2 == 1)? 'OddCol': '' }, :selectmode=>:extended, :flashmode=>true, :rowstretch=>:unset, :colstretch=>:unset, diff --git a/ext/tk/sample/tkextlib/tktable/maxsize.rb b/ext/tk/sample/tkextlib/tktable/maxsize.rb index c9ca745ee..aff68ff37 100644 --- a/ext/tk/sample/tkextlib/tktable/maxsize.rb +++ b/ext/tk/sample/tkextlib/tktable/maxsize.rb @@ -28,7 +28,7 @@ table = Tk::TkTable.new(:rows=>rows, :cols=>cols, :variable=>ary, :titlerows=>1, :titlecols=>1, :coltagcommand=>proc{|col| col = Integer(col) - return 'OddCol' if col>0 && col%2 == 1 + (col>0 && col%2 == 1)? 'OddCol': '' }, :selectmode=>:extended, :colstretch=>:unset, :rowstretch=>:unset, |
