Skip to content

Commit d57bbd4

Browse files
author
nagai
committed
* 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/branches/ruby_1_8@6975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4197dc5 commit d57bbd4

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Fri Oct 1 11:25:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2+
3+
* ext/tk/lib/tk/grid.rb: revive TkGrid.grid
4+
5+
* ext/tk/lib/tk/pack.rb: revive TkPack.pack
6+
7+
* ext/tk/lib/tk/place.rb: revive TkPlace.place
8+
19
Thu Sep 30 00:50:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
210

311
* ext/tcltklib/tcltklib.c (ip_init): bug fix

ext/tk/lib/tk/grid.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def configure(win, *args)
4444
}
4545
tk_call_without_enc("grid", 'configure', *params)
4646
end
47+
alias grid configure
4748

4849
def columnconfigure(master, index, args)
4950
# master = master.epath if master.kind_of?(TkObject)
@@ -181,7 +182,7 @@ def slaves(master, args)
181182

182183
module_function :bbox, :forget, :propagate, :info
183184
module_function :remove, :size, :slaves, :location
184-
module_function :configure, :columnconfigure, :rowconfigure
185+
module_function :grid, :configure, :columnconfigure, :rowconfigure
185186
module_function :columnconfiginfo, :rowconfiginfo
186187
end
187188
=begin

ext/tk/lib/tk/pack.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def configure(win, *args)
2929
}
3030
tk_call_without_enc("pack", 'configure', *params)
3131
end
32+
alias pack configure
3233

3334
def forget(*args)
3435
return '' if args.size == 0
@@ -66,7 +67,7 @@ def slaves(master)
6667
list(tk_call_without_enc('pack', 'slaves', master))
6768
end
6869

69-
module_function :configure, :forget, :info, :propagate, :slaves
70+
module_function :pack, :configure, :forget, :info, :propagate, :slaves
7071
end
7172
=begin
7273
def TkPack(win, *args)

ext/tk/lib/tk/place.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def configure(win, slot, value=None)
2727
tk_call_without_enc('place', 'configure', win, "-#{slot}", value)
2828
end
2929
end
30+
alias place configure
3031

3132
def configinfo(win, slot = nil)
3233
# for >= Tk8.4a2 ?
@@ -106,7 +107,7 @@ def slaves(master)
106107
list(tk_call('place', 'slaves', master))
107108
end
108109

109-
module_function :configure, :configinfo, :current_configinfo
110+
module_function :place, :configure, :configinfo, :current_configinfo
110111
module_function :forget, :info, :slaves
111112
end
112113
=begin

0 commit comments

Comments
 (0)