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

Without this, the section docblock for GKeyFile disappears into the
ether when generating the introspection data.

Helps: #2961
This commit is contained in:
Emmanuele Bassi 2023-05-30 12:06:08 +01:00
parent 153c7f7b99
commit 4386d912d7
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -2064,7 +2064,7 @@ GErrorType
<SECTION> <SECTION>
<TITLE>Key-value file parser</TITLE> <TITLE>Key-value file parser</TITLE>
<FILE>keyfile</FILE> <FILE>gkeyfile</FILE>
GKeyFile GKeyFile
G_KEY_FILE_ERROR G_KEY_FILE_ERROR
GKeyFileError GKeyFileError

View File

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