summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/image.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-24 14:30:14 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-24 14:30:14 +0000
commit3d35bc31f42ef1652341bbb40187a0809e1a8241 (patch)
treea4d9cbfb50a184d0d53d2bc9b10b37081c111381 /ext/tk/lib/tk/image.rb
parentb35a261a79a411895c52a3e1a224f421f9c0f3c0 (diff)
* ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/image.rb')
-rw-r--r--ext/tk/lib/tk/image.rb4
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