summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-16 04:27:15 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-16 04:27:15 +0000
commitdcd30a1236cdb2e06b6dd1a74a4c0a0c29549be6 (patch)
tree9296921310463e33f75aee50afca759fda13e573 /ext
parent82275d47661a0234da26f66fcab8a988c2fc4761 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index a73f15e367..692c781677 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -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)