From c24349e32d6cd74e4df9103364af62a59095ef6c Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 7 Jan 2004 05:28:53 +0000 Subject: * 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 --- ext/tk/lib/tk.rb | 17 +++++++------ ext/tk/lib/tkcanvas.rb | 7 ++++++ ext/tk/lib/tktext.rb | 68 ++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 78 insertions(+), 14 deletions(-) (limited to 'ext') diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 7de4cd5f24..6bae4d8f42 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -4830,16 +4830,18 @@ class TkPanedWindow 0 tk_call(@t.path, 'window', 'configure', @index, *hash_kv(slot)) end else - @id = value if slot == 'window' || slot == :window + if slot == 'window' || slot == :window + @id = value + value = @id.epath if @id.kind_of?(TkWindow) + end if slot == 'create' || slot == :create self.create=value else @@ -1228,8 +1274,9 @@ class TkTextWindow