Function

Gntstyle_get_from_name

since: 2.1

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

Parameters

group

Type: 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

Type: 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

Type: 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.