Function

GtkColorSelectionpalette_to_string

Declaration [src]

gchar*
gtk_color_selection_palette_to_string (
  const GdkColor* colors,
  gint n_colors
)

Description [src]

Encodes a palette as a string, useful for persistent storage.

Parameters

colors

Type: An array of GdkColor

An array of colors.

The length of the array is specified in the n_colors argument.
The data is owned by the caller of the function.
n_colors

Type: gint

Length of the array.

Return value

Type: gchar*

Allocated string encoding the palette.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.