Package: gtk

Function gtk-color-chooser-add-palette

Lambda List

gtk-color-chooser-add-palette (chooser orientation colors-per-line colors)

Arguments

chooser -- a gtk-color-chooser object
orientation -- :horizontal if the palette should be displayed in rows, :vertical for columns
colors-per-line -- the number of colors to show in each row/column
colors -- the colors of the palette, or nil

Details

Adds a palette to the color chooser. If orientation is horizontal, the colors are grouped in rows, with colors-per-line colors in each row. If horizontal is nil, the colors are grouped in columns instead.

The default color palette of gtk-color-chooser-widget has 27 colors, organized in columns of 3 colors. The default gray palette has 9 grays in a single row.

The layout of the color chooser widget works best when the palettes have 9-10 columns.

Calling this function for the first time has the side effect of removing the default color and gray palettes from the color chooser.

If colors is nil, removes all previously added palettes.

Since 3.4
2013-6-3