summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
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 cec589047f5..308e6ddfd80 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)