KeyFile.getComment

Retrieves a comment above @key from @group_name. If @key is %NULL then @comment will be read from above @group_name. If both @key and @group_name are %NULL, then @comment will be read from above the first group in the file.

Note that the returned string includes the '#' comment markers.

class KeyFile
string
getComment
(
string groupName
,
string key
)

Parameters

groupName string

a group name, or %NULL

key string

a key

Return: a comment that should be freed with g_free()

Throws

GException on failure.

Meta