Function

Gntcolors_get_color

since: 2.4

Declaration [src]

int
gnt_colors_get_color (
  char* key
)

Description [src]

Parse a string color.

Available since: 2.4

Parameters

key

Type: char*

The string value.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: int

A color. For an unknown color name, returns -EINVAL.