aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-22 13:52:48 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-22 13:52:48 +0000
commit615a54e77d00c0b456fe6a6f8b6d48203e25b3ac (patch)
treebf0ace3a2218c9f5558eb31073d899e90d51c360 /ext/tk/lib/tk.rb
parent448b1af751fed5976948d629d9b7028a7d044506 (diff)
downloadruby-615a54e77d00c0b456fe6a6f8b6d48203e25b3ac.tar.gz
* ext/tk/lib/tk.rb: add Tk.grab_release and fix bug of TkComposite
* ext/tk/lib/tkafter.rb: bug fix * ext/tk/sample/tkcombobox.rb: new sample script * ext/tcltklib/tcltklib.c: add native thread check git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index cec589047f..308e6ddfd8 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -4261,6 +4261,9 @@ class TkWindow<TkObject
def grab_current
grab('current')
end
+ def grab_release
+ grab('release')
+ end
def grab_set
grab('set')
end
@@ -5681,8 +5684,8 @@ module TkComposite
if parent.kind_of? Hash
keys = _symbolkey2str(parent)
- parent = keys['parent']
- keys['parent'] = @frame = TkFrame.new(parent)
+ parent = keys.delete('parent')
+ @frame = TkFrame.new(parent)
@delegates['DEFAULT'] = @frame
@path = @epath = @frame.path
initialize_composite(keys)