diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-22 13:52:48 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-22 13:52:48 +0000 |
| commit | 9f8aadaa0e2f214d3dc4b4e3a5955de3162fb3f5 (patch) | |
| tree | bf0ace3a2218c9f5558eb31073d899e90d51c360 /ext/tk/lib/tk.rb | |
| parent | 65531e7d2f509ce7e6b6eb5e7437efab5b7a2df8 (diff) | |
| download | ruby-9f8aadaa0e2f214d3dc4b4e3a5955de3162fb3f5.tar.gz ruby-9f8aadaa0e2f214d3dc4b4e3a5955de3162fb3f5.tar.xz ruby-9f8aadaa0e2f214d3dc4b4e3a5955de3162fb3f5.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
| -rw-r--r-- | ext/tk/lib/tk.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index cec589047..308e6ddfd 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) |
