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 | 78ad11898621cd6478f284b3b73746a491e7e617 (patch) | |
| tree | 2929826f788b5dede78077276e6b2fb093bae819 /ext/tk | |
| parent | 5e2c1ce5eae1755ba3ce29a354d8a096ed5a3885 (diff) | |
| download | ruby-78ad11898621cd6478f284b3b73746a491e7e617.tar.gz ruby-78ad11898621cd6478f284b3b73746a491e7e617.tar.xz ruby-78ad11898621cd6478f284b3b73746a491e7e617.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
| -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 91f3b3207..c591eea18 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 79f4d19d8..d592fa1c8 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 433c1077e..ea70a6bea 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 |
