diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-21 04:46:21 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-21 04:46:21 +0000 |
commit | b47b436151de5152d8308d1ccfa29a59ecbf7b67 (patch) | |
tree | 491b1e28e5bd99ca3e157cb642fecba9c898b1f9 /ext | |
parent | b5a1c2677aca1c88207ec069cb742cbc960ae2d8 (diff) | |
download | ruby-b47b436151de5152d8308d1ccfa29a59ecbf7b67.tar.gz ruby-b47b436151de5152d8308d1ccfa29a59ecbf7b67.tar.xz ruby-b47b436151de5152d8308d1ccfa29a59ecbf7b67.zip |
bug fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/lib/tk.rb | 4 | ||||
-rw-r--r-- | ext/tk/sample/demos-en/items.rb | 4 | ||||
-rw-r--r-- | ext/tk/sample/demos-jp/items.rb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index e79d97ac8..a71ac7590 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -5058,7 +5058,7 @@ class TkScale<TkWindow end def set(val) - tk_send "set", val + tk_send("set", val) end def value @@ -5066,7 +5066,7 @@ class TkScale<TkWindow end def value= (val) - set val + set(val) end end diff --git a/ext/tk/sample/demos-en/items.rb b/ext/tk/sample/demos-en/items.rb index e6bf57ee8..844743069 100644 --- a/ext/tk/sample/demos-en/items.rb +++ b/ext/tk/sample/demos-en/items.rb @@ -257,9 +257,9 @@ TkEntry.new(cvs, 'width'=>20, 'relief'=>'sunken') {|e| 'window'=>e, 'anchor'=>'nw', 'tags'=>$tag_item) } TkScale.new(cvs, 'from'=>0, 'to'=>100, 'length'=>'6c', 'sliderlength'=>'.4c', - 'width'=>'.5c', 'tickinterval'=>0 ) {|s| + 'width'=>'.5c', 'tickinterval'=>0 ) {|scl| TkcWindow.new(cvs, '28.5c','17.5c', - 'window'=>s, 'anchor'=>'n', 'tags'=>$tag_item) + 'window'=>scl, 'anchor'=>'n', 'tags'=>$tag_item) } TkcText.new(cvs, '21c', '17.9c', 'text'=>'Button:', 'anchor'=>'sw') TkcText.new(cvs, '21c', '20.9c', 'text'=>'Entry:', 'anchor'=>'sw') diff --git a/ext/tk/sample/demos-jp/items.rb b/ext/tk/sample/demos-jp/items.rb index 84e561f27..e1007c5a8 100644 --- a/ext/tk/sample/demos-jp/items.rb +++ b/ext/tk/sample/demos-jp/items.rb @@ -255,9 +255,9 @@ TkEntry.new(cvs, 'width'=>20, 'relief'=>'sunken') {|e| 'window'=>e, 'anchor'=>'nw', 'tags'=>$tag_item) } TkScale.new(cvs, 'from'=>0, 'to'=>100, 'length'=>'6c', 'sliderlength'=>'.4c', - 'width'=>'.5c', 'tickinterval'=>0 ) {|s| + 'width'=>'.5c', 'tickinterval'=>0 ) {|scl| TkcWindow.new(cvs, '28.5c','17.5c', - 'window'=>s, 'anchor'=>'n', 'tags'=>$tag_item) + 'window'=>scl, 'anchor'=>'n', 'tags'=>$tag_item) } TkcText.new(cvs, '21c', '17.9c', 'text'=>'ボタン:', 'anchor'=>'sw') TkcText.new(cvs, '21c', '20.9c', 'text'=>'エントリ:', 'anchor'=>'sw') |