mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
448b1af751
commit
615a54e77d
6 changed files with 438 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue