lib/knj/ironruby-gtk2/tests/test_2.rb in knjrbfw-0.0.8 vs lib/knj/ironruby-gtk2/tests/test_2.rb in knjrbfw-0.0.9

- old
+ new

@@ -1,22 +1,22 @@ require "knj/autoload" class MainWindow - def initialize - button = Gtk::Button.new("Test") - - button.signal_connect("clicked") do - Gtk.main_quit - end - - win = Gtk::Window.new - win.add button - win.show_all - end + def initialize + button = Gtk::Button.new("Test") + + button.signal_connect("clicked") do + Gtk.main_quit + end + + win = Gtk::Window.new + win.add button + win.show_all + end - def on_button1_clicked(object, event) - print "hmm\n" - end + def on_button1_clicked(object, event) + print "hmm\n" + end end main_window = MainWindow.new Gtk.main \ No newline at end of file