Function

Gntstyle_get_from_name

Declaration [src]

char*
gnt_style_get_from_name (
  const char* group,
  const char* key
)

Description [src]

Get the value of a preference in ~/.gntrc.

Available since:2.1.0

Parameters

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

The value of the setting as a string, or NULL.

 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.