summaryrefslogtreecommitdiff
path: root/ext/tk/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tk.rb7
-rw-r--r--ext/tk/lib/tkafter.rb2
2 files changed, 6 insertions, 3 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)
diff --git a/ext/tk/lib/tkafter.rb b/ext/tk/lib/tkafter.rb
index 663b977ed2..92ad182fb9 100644
--- a/ext/tk/lib/tkafter.rb
+++ b/ext/tk/lib/tkafter.rb
@@ -306,7 +306,7 @@ class TkTimer
fail format("%s need to be Proc", @init_proc.inspect)
end
@current_proc = @init_proc
- set_callback(sleep, @init_args)
+ set_callback(@init_sleep, @init_args)
@set_next = false if @in_callback
else
set_next_callback(@init_args)