diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-01 02:27:03 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-01 02:27:03 +0000 |
commit | 8e292f628567bad4b7e67d0fea28138785775651 (patch) | |
tree | 2929826f788b5dede78077276e6b2fb093bae819 /ext | |
parent | c6655d70685d1c15c6dad853069101b37838e63d (diff) | |
download | ruby-8e292f628567bad4b7e67d0fea28138785775651.tar.gz |
* ext/tk/lib/tk/grid.rb: revive TkGrid.grid
* ext/tk/lib/tk/pack.rb: revive TkPack.pack
* ext/tk/lib/tk/place.rb: revive TkPlace.place
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/lib/tk/grid.rb | 3 | ||||
-rw-r--r-- | ext/tk/lib/tk/pack.rb | 3 | ||||
-rw-r--r-- | ext/tk/lib/tk/place.rb | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/ext/tk/lib/tk/grid.rb b/ext/tk/lib/tk/grid.rb index 91f3b32072..c591eea187 100644 --- a/ext/tk/lib/tk/grid.rb +++ b/ext/tk/lib/tk/grid.rb @@ -44,6 +44,7 @@ module TkGrid } tk_call_without_enc("grid", 'configure', *params) end + alias grid configure def columnconfigure(master, index, args) # master = master.epath if master.kind_of?(TkObject) @@ -181,7 +182,7 @@ module TkGrid module_function :bbox, :forget, :propagate, :info module_function :remove, :size, :slaves, :location - module_function :configure, :columnconfigure, :rowconfigure + module_function :grid, :configure, :columnconfigure, :rowconfigure module_function :columnconfiginfo, :rowconfiginfo end =begin diff --git a/ext/tk/lib/tk/pack.rb b/ext/tk/lib/tk/pack.rb index 79f4d19d82..d592fa1c80 100644 --- a/ext/tk/lib/tk/pack.rb +++ b/ext/tk/lib/tk/pack.rb @@ -29,6 +29,7 @@ module TkPack } tk_call_without_enc("pack", 'configure', *params) end + alias pack configure def forget(*args) return '' if args.size == 0 @@ -66,7 +67,7 @@ module TkPack list(tk_call_without_enc('pack', 'slaves', master)) end - module_function :configure, :forget, :info, :propagate, :slaves + module_function :pack, :configure, :forget, :info, :propagate, :slaves end =begin def TkPack(win, *args) diff --git a/ext/tk/lib/tk/place.rb b/ext/tk/lib/tk/place.rb index 433c1077ee..ea70a6bea0 100644 --- a/ext/tk/lib/tk/place.rb +++ b/ext/tk/lib/tk/place.rb @@ -27,6 +27,7 @@ module TkPlace tk_call_without_enc('place', 'configure', win, "-#{slot}", value) end end + alias place configure def configinfo(win, slot = nil) # for >= Tk8.4a2 ? @@ -106,7 +107,7 @@ module TkPlace list(tk_call('place', 'slaves', master)) end - module_function :configure, :configinfo, :current_configinfo + module_function :place, :configure, :configinfo, :current_configinfo module_function :forget, :info, :slaves end =begin |