diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/tk/lib/tk/image.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Fri Dec 24 23:27:18 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix + Fri Dec 24 18:39:25 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * win32/win32.[ch]: failed to compile on bcc32 (and probably wince) 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 |