Function

Gntstyle_get_string_list

since: 2.4

Declaration [src]

char**
gnt_style_get_string_list (
  const char* group,
  const char* key,
  gsize* length
)

Description [src]

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

Available since: 2.4

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

Type: gsize*

Return location for the number of strings returned, or NULL.

The data is owned by the caller of the function.

Return value

Type: An array of utf8

NULL terminated string array. The array should be freed with g_strfreev().

The array is NULL-terminated.
The caller of the function takes ownership of the data, and is responsible for freeing it.
Each element is a NUL terminated UTF-8 string.