diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 07:49:11 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-21 07:49:11 +0000 |
| commit | 35dcc04709bd5a5564145ae34878b84e9b1406cb (patch) | |
| tree | 59f9d01ec766496730532bbba81eaa3ac64aae65 /ext/tk/lib/tk.rb | |
| parent | e625346c87344fc13dc737b63b0328b3d311994b (diff) | |
| download | ruby-35dcc04709bd5a5564145ae34878b84e9b1406cb.tar.gz ruby-35dcc04709bd5a5564145ae34878b84e9b1406cb.tar.xz ruby-35dcc04709bd5a5564145ae34878b84e9b1406cb.zip | |
* ext/tk/lib/tkentry.rb: fix the encoding trouble of percent
substitutions on validatecommand option of TkEntry widget
* ext/tk/lib/tk.rb: fix bug on {pack|grid}_propagate() method
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
| -rw-r--r-- | ext/tk/lib/tk.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 9c7a0982c..cec589047 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -4053,8 +4053,8 @@ class TkWindow<TkObject return info end - def pack_propagate(mode = nil) - if mode + def pack_propagate(mode=None) + if mode == None tk_call('pack', 'propagate', epath, mode) else bool(tk_call('pack', 'propagate', epath)) @@ -4141,8 +4141,8 @@ class TkWindow<TkObject list(tk_call('grid', 'location', epath, x, y)) end - def grid_propagate(mode=nil) - if mode + def grid_propagate(mode=None) + if mode == None tk_call('grid', 'propagate', epath, mode) else bool(tk_call('grid', 'propagate', epath)) |
