summaryrefslogtreecommitdiff
path: root/ext/gtk/test5.rb
diff options
context:
space:
mode:
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