def initialize
super(true, "testGNOME", "Color Picker")
@table = Gtk::Table.new(3, 3, false)
@table.border_width = Gnome::PAD_SMALL
@table.set_row_spacings(Gnome::PAD_SMALL)
@table.set_column_spacings(Gnome::PAD_SMALL)
set_contents(@table)
@table.show
w = Gtk::Label.new("Dither")
@table.attach(w, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL, 0, 0)
w.show
w = Gtk::Label.new("No dither")
@table.attach(w, 2, 3, 0, 1, Gtk::FILL, Gtk::FILL, 0, 0)
w.show
w = Gtk::Label.new("No alpha")
@table.attach(w, 0, 1, 1, 2, Gtk::FILL, Gtk::FILL, 0, 0)
w.show
w = Gtk::Label.new("Alpha")
@table.attach(w, 0, 1, 2, 3, Gtk::FILL, Gtk::FILL, 0, 0)
w.show
create_cp(true, false, 1, 2, 1, 2);
create_cp(false, false, 2, 3, 1, 2);
create_cp(true, true, 1, 2, 2, 3);
create_cp(false, true, 2, 3, 2, 3);
show
end