From 8e292f628567bad4b7e67d0fea28138785775651 Mon Sep 17 00:00:00 2001 From: nagai Date: Fri, 1 Oct 2004 02:27:03 +0000 Subject: * 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 --- ext/tk/lib/tk/grid.rb | 3 ++- ext/tk/lib/tk/pack.rb | 3 ++- ext/tk/lib/tk/place.rb | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'ext/tk') 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 -- cgit v1.2.3