Function

Gntstyle_get_color

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.0

Parameters

group 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 char*
 

The key.

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

Return value

Returns: int
 

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