Function

Gntstyle_get_color

since: 2.4

Declaration [src]

int
gnt_style_get_color (
  char* group,
  char* key
)

Description [src]

Get the value of a color pair in ~/.gntrc.

Available since: 2.4

Parameters

group

Type: char*

The name of the group in the keyfile. If NULL, the prgname will be used first, if available. Otherwise, “general” will be used.

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

Type: char*

The key.

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

Return value

Type: int

The value of the color as an int, or 0 on error.