Merge branch 'ebassi/keyfile-docs' into 'main'

docs: Use the type name as the section name for GKeyFile

See merge request GNOME/glib!3453
This commit is contained in:
Emmanuele Bassi 2023-05-31 01:05:34 +00:00
commit 6fc6d9ea3e
4 changed files with 8 additions and 6 deletions

View File

@ -90,8 +90,8 @@
<xi:include href="xml/gregex.xml" />
<xi:include href="regex-syntax.xml" />
<xi:include href="xml/markup.xml" />
<xi:include href="xml/keyfile.xml" />
<xi:include href="xml/bookmarkfile.xml" />
<xi:include href="xml/gkeyfile.xml" />
<xi:include href="xml/gbookmarkfile.xml" />
<xi:include href="xml/testing.xml" />
<xi:include href="xml/gunix.xml" />
<xi:include href="xml/windows.xml" />

View File

@ -2064,7 +2064,7 @@ GErrorType
<SECTION>
<TITLE>Key-value file parser</TITLE>
<FILE>keyfile</FILE>
<FILE>gkeyfile</FILE>
GKeyFile
G_KEY_FILE_ERROR
GKeyFileError
@ -2159,7 +2159,7 @@ g_key_file_get_type
<SECTION>
<TITLE>Bookmark file parser</TITLE>
<FILE>bookmarkfile</FILE>
<FILE>gbookmarkfile</FILE>
GBookmarkFile
G_BOOKMARK_FILE_ERROR
GBookmarkFileError

View File

@ -53,7 +53,7 @@
/**
* SECTION:bookmarkfile
* SECTION:gbookmarkfile
* @title: Bookmark file parser
* @short_description: parses files containing bookmarks
*

View File

@ -74,7 +74,7 @@
/**
* SECTION:keyfile
* SECTION:gkeyfile
* @title: Key-value file parser
* @short_description: parses .ini-like config files
*
@ -160,6 +160,7 @@
* restricted to ASCII characters.
*
* Here is an example of loading a key file and reading a value:
*
* |[<!-- language="C" -->
* g_autoptr(GError) error = NULL;
* g_autoptr(GKeyFile) key_file = g_key_file_new ();
@ -186,6 +187,7 @@
* ]|
*
* Here is an example of creating and saving a key file:
*
* |[<!-- language="C" -->
* g_autoptr(GKeyFile) key_file = g_key_file_new ();
* const gchar *val = ;