Skip to content

Commit

Permalink
* condition bug of if statement on {pack,grid}_propagate methods
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nagai committed Dec 16, 2003
1 parent 82275d4 commit dcd30a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Tue Dec 16 13:20:43 2003 Hidetoshi NAGAI <[email protected]>

* 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 <[email protected]>

* lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]
Expand Down
15 changes: 9 additions & 6 deletions ext/tk/lib/tk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3079,7 +3079,7 @@ def remove(*args)
end

def size(master)
tk_call 'grid', 'size', master
list(tk_call('grid', 'size', master))
end

def slaves(master, args)
Expand Down Expand Up @@ -4056,9 +4056,10 @@ def pack_info()

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

Expand Down Expand Up @@ -4144,18 +4145,20 @@ def grid_location(x, y)

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)
Expand Down

0 comments on commit dcd30a1

Please sign in to comment.