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 | 9f5f1d2dd51e02d366b8897fcbca93e072a1fd65 (patch) | |
| tree | 83948569d4e8ac0c5608be467b9ffdadafb66720 /ext/tk/lib/tk.rb | |
| parent | bf1bb16236c16795ca0c122ab36eba025349d6ba (diff) | |
| download | ruby-9f5f1d2dd51e02d366b8897fcbca93e072a1fd65.tar.gz ruby-9f5f1d2dd51e02d366b8897fcbca93e072a1fd65.tar.xz ruby-9f5f1d2dd51e02d366b8897fcbca93e072a1fd65.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 6fb139f01..0abab4b3e 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 |
