# File gtk2/sample/testgtk/dialog.rb, line 14 def initialize super("Gtk::Dialog") set_default_size(200, 100) button = Gtk::Button.new("OK") button.can_default = true action_area.pack_start(button) button.grab_default button = Gtk::Button.new("Toggle") button.signal_connect("clicked"){label_toggle} button.can_default = true action_area.pack_start(button) @label = nil end
Generated with the Darkfish Rdoc Generator 2.