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/tkextlib/tktable | |
| 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/tkextlib/tktable')
| -rw-r--r-- | ext/tk/lib/tkextlib/tktable/tktable.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tktable/tktable.rb b/ext/tk/lib/tkextlib/tktable/tktable.rb index 7182983c0..da78ca3fb 100644 --- a/ext/tk/lib/tkextlib/tktable/tktable.rb +++ b/ext/tk/lib/tkextlib/tktable/tktable.rb @@ -71,6 +71,14 @@ module Tk::TkTable::ConfigMethod itemcget(['window', tagid(tagOrId)], option) end def window_configure(tagOrId, slot, value=None) + if slot == :window || slot == 'window' + value = _epath(value) + elsif slot.kind_of?(Hash) + if slot.key?(:window) || slot.key?('window') + slot = _symbolkey2str(slot) + slot['window'] = _epath(slot['window']) + end + end itemconfigure(['window', tagid(tagOrId)], slot, value) end def window_configinfo(tagOrId, slot=nil) |
