mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* condition bug of if statement on {pack,grid}_propagate methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
82275d4766
commit
dcd30a1236
2 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Dec 16 13:20:43 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk.rb: condition bug of if statement on
|
||||
{pack,grid}_propagate methods
|
||||
|
||||
Tue Dec 16 03:17:29 2003 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]
|
||||
|
|
|
@ -3079,7 +3079,7 @@ module TkGrid
|
|||
end
|
||||
|
||||
def size(master)
|
||||
tk_call 'grid', 'size', master
|
||||
list(tk_call('grid', 'size', master))
|
||||
end
|
||||
|
||||
def slaves(master, args)
|
||||
|
@ -4056,9 +4056,10 @@ class TkWindow<TkObject
|
|||
|
||||
def pack_propagate(mode=None)
|
||||
if mode == None
|
||||
tk_call('pack', 'propagate', epath, mode)
|
||||
else
|
||||
bool(tk_call('pack', 'propagate', epath))
|
||||
else
|
||||
tk_call('pack', 'propagate', epath, mode)
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -4144,18 +4145,20 @@ class TkWindow<TkObject
|
|||
|
||||
def grid_propagate(mode=None)
|
||||
if mode == None
|
||||
tk_call('grid', 'propagate', epath, mode)
|
||||
else
|
||||
bool(tk_call('grid', 'propagate', epath))
|
||||
else
|
||||
tk_call('grid', 'propagate', epath, mode)
|
||||
self
|
||||
end
|
||||
end
|
||||
|
||||
def grid_remove()
|
||||
tk_call 'grid', 'remove', epath
|
||||
self
|
||||
end
|
||||
|
||||
def grid_size()
|
||||
tk_call 'grid', 'size', epath
|
||||
list(tk_call('grid', 'size', epath))
|
||||
end
|
||||
|
||||
def grid_slaves(args)
|
||||
|
|
Loading…
Add table
Reference in a new issue