diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-24 14:30:14 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-24 14:30:14 +0000 |
commit | 0634c0761033d05e20dbc2d2dd56819b60b73fbc (patch) | |
tree | b1b1e5e0139890256cda903cdf052de4db7974a9 /ext | |
parent | 0ebc7c2bc96cbcbf6fa4315cbe66f49ce6abf875 (diff) | |
download | ruby-0634c0761033d05e20dbc2d2dd56819b60b73fbc.tar.gz |
* ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/lib/tk/image.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/image.rb b/ext/tk/lib/tk/image.rb index 6eb7b98d6c..0848eb5966 100644 --- a/ext/tk/lib/tk/image.rb +++ b/ext/tk/lib/tk/image.rb @@ -89,9 +89,9 @@ class TkPhotoImage<TkImage def cget(option) case option.to_s when 'data', 'file' - tk_send 'cget', option + tk_send 'cget', '-' << option.to_s else - tk_tcl2ruby(tk_send('cget', option)) + tk_tcl2ruby(tk_send('cget', '-' << option.to_s)) end end |