1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/lib/tk.rb: use epath for embedded windows of TkPanedWindow.

* ext/tk/lib/tktext.rb: use epath for embedded windows.
* ext/tk/lib/tkcanvas.rb: use epath for window items.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2004-01-07 05:28:53 +00:00
parent cd97e6e333
commit c24349e32d
4 changed files with 86 additions and 14 deletions

View file

@ -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