diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 09:28:18 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 09:28:18 +0000 |
commit | 3f0a43579029fbd0816f653047bba0196193d074 (patch) | |
tree | 3e5ef42cb61a0bb13e8cfe07e7425721eb7ff634 /ext/tk/lib/tkcanvas.rb | |
parent | 7ed4cff32ffe6d0f45cb855a1c5668025a615c48 (diff) | |
download | ruby-3f0a43579029fbd0816f653047bba0196193d074.tar.gz ruby-3f0a43579029fbd0816f653047bba0196193d074.tar.xz ruby-3f0a43579029fbd0816f653047bba0196193d074.zip |
* backport changes from 1.9
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkcanvas.rb')
-rw-r--r-- | ext/tk/lib/tkcanvas.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/tk/lib/tkcanvas.rb b/ext/tk/lib/tkcanvas.rb index 32b5ac7af..ccb02c056 100644 --- a/ext/tk/lib/tkcanvas.rb +++ b/ext/tk/lib/tkcanvas.rb @@ -862,6 +862,13 @@ end class TkcWindow<TkcItem CItemTypeToClass['window'] = self def create_self(*args) + keys = args.pop + if keys && keys.kind_of?(Hash) + keys = _symbolkey2str(keys) + win = keys['window'] + keys['window'] = win.epath if win.kind_of?(TkWindow) + end + args.push(keys) if keys tk_call(@path, 'create', 'window', *args) end private :create_self |