diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-26 09:07:25 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-26 09:07:25 +0000 |
commit | 27c24b0f3bdd63459ea2d1de4366d0b38a4aef5d (patch) | |
tree | be31dc73639d42c1ef4814bf730f1e4675f3cb57 /ext/tk/lib/tk.rb | |
parent | 6d0f22ebc6cf0c3ad5d542bf5bfd140a0f7c98cf (diff) | |
download | ruby-27c24b0f3bdd63459ea2d1de4366d0b38a4aef5d.tar.gz |
* ext/tk/lib/tk.rb: Tk.destroy uses TkWindow#epath
* ext/tk/lib/tk/image.rb: bug fix
* ext/tk/lib/tk/wm.rb: add 'iconphoto' method(Windows only)
* ext/tk/lib/tkextlib/*: some methods uses TkWindow#epath
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r-- | ext/tk/lib/tk.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 6fb139f015..0abab4b3ec 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -1677,7 +1677,14 @@ module Tk end def Tk.destroy(*wins) - tk_call_without_enc('destroy', *wins) + #tk_call_without_enc('destroy', *wins) + tk_call_without_enc('destroy', *(wins.collect{|win| + if win.kind_of?(TkWindow) + win.epath + else + win + end + })) end def Tk.exit |