# File gnome/sample/test-gnome/test-gnome.rb, line 52
  def initialize
    buttons = [
      [ "app window", AppHelperApp],
      [ "color picker", ColorPickerApp ],
      [ "date edit", DateEditApp ],
      [ "entry", EntryApp],
      [ "file entry", FileEntryApp ],
      [ "pixmap entry", PixmapEntryApp ],
      [ "icon entry", IconEntryApp ],
      [ "font picker", FontPickerApp ],
      [ "href", HRefApp ],
      [ "icon list", IconListApp ],
      [ "about box", AboutApp ],
    ]

    super(false, "testGNOME", "testGNOME")
    self.set_default_size(200, 300)
    box1 = Gtk::VBox.new(false, 0)
    self.contents = box1
    box1.show()
    scrolled_window = Gtk::ScrolledWindow.new(nil, nil)
    scrolled_window.border_width = 10
    scrolled_window.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
    # scrolled_window.vscrollbar.set_property(:can_focus, false)
    box1.pack_start(scrolled_window, true, true, 0)
    scrolled_window.show()
    box2 = Gtk::VBox.new(false, 0)
    box2.border_width = 10
    scrolled_window.add_with_viewport(box2)
    box2.set_focus_vadjustment(scrolled_window.vadjustment)
    box2.show()
    buttons.each do |label, klass|
      button = Gtk::Button.new(label)
      unless klass.nil?
        button.signal_connect("clicked", klass) do |obj, klass|
          klass.new
        end
      else
        button.sensitive = false
      end
      box2.pack_start(button, true, true, 0)
      button.show()
    end

    self.show()
  end