summaryrefslogtreecommitdiff
path: root/ext/gtk/test5.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-24 09:33:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-04-24 09:33:30 +0000
commit9ce253a2cfc26cc7a0d2cfeeaf15d6216d522077 (patch)
tree6f6334590a5705de7f7288d3eb8e572bfe75453f /ext/gtk/test5.rb
parent8581fa1549787fc64e0d8a198838fe47104726c1 (diff)
gtk/nested local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/gtk/test5.rb')
-rw-r--r--ext/gtk/test5.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gtk/test5.rb b/ext/gtk/test5.rb
index f1d5d734cf..39018a873c 100644
--- a/ext/gtk/test5.rb
+++ b/ext/gtk/test5.rb
@@ -17,10 +17,11 @@ table.show
button = []
0.upto(8) do |i|
- button.push Gtk::Button::new("button"+(i+1))
+ button.push Gtk::Button::new("button"+(i+1).to_s)
end
0.upto(8) do |i|
button[i].signal_connect("clicked") do |w|
+ p [i]
j = (i+1)%9
if button[j].visible?
button[j].hide