Don't use <filename> in docs

Switch to simpler markdown, `foo`.
This commit is contained in:
Matthias Clasen 2014-02-05 20:17:46 -05:00
parent 111803030d
commit 0cc20b7e0b
27 changed files with 106 additions and 116 deletions

View File

@ -58,9 +58,9 @@
* #GDesktopAppInfo is an implementation of #GAppInfo based on * #GDesktopAppInfo is an implementation of #GAppInfo based on
* desktop files. * desktop files.
* *
* Note that <filename>&lt;gio/gdesktopappinfo.h&gt;</filename> belongs to * Note that `<gio/gdesktopappinfo.h>` belongs to the UNIX-specific
* the UNIX-specific GIO interfaces, thus you have to use the * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
*/ */
#define DEFAULT_APPLICATIONS_GROUP "Default Applications" #define DEFAULT_APPLICATIONS_GROUP "Default Applications"
@ -1306,13 +1306,13 @@ g_desktop_app_info_new_from_filename (const char *filename)
* *
* A desktop file id is the basename of the desktop file, including the * A desktop file id is the basename of the desktop file, including the
* .desktop extension. GIO is looking for a desktop file with this name * .desktop extension. GIO is looking for a desktop file with this name
* in the <filename>applications</filename> subdirectories of the XDG * in the `applications` subdirectories of the XDG
* data directories (i.e. the directories specified in the `XDG_DATA_HOME` * data directories (i.e. the directories specified in the `XDG_DATA_HOME`
* and `XDG_DATA_DIRS` environment variables). GIO also supports the * and `XDG_DATA_DIRS` environment variables). GIO also supports the
* prefix-to-subdirectory mapping that is described in the * prefix-to-subdirectory mapping that is described in the
* <ulink url="http://standards.freedesktop.org/menu-spec/latest/">Menu * <ulink url="http://standards.freedesktop.org/menu-spec/latest/">Menu
* Spec</ulink> (i.e. a desktop id of kde-foo.desktop will match * Spec</ulink> (i.e. a desktop id of kde-foo.desktop will match
* <filename>/usr/share/applications/kde/foo.desktop</filename>). * `/usr/share/applications/kde/foo.desktop`).
* *
* Returns: a new #GDesktopAppInfo, or %NULL if no desktop file with that id * Returns: a new #GDesktopAppInfo, or %NULL if no desktop file with that id
*/ */

View File

@ -32,9 +32,9 @@
* #GFileDescriptorBased is implemented by streams (implementations of * #GFileDescriptorBased is implemented by streams (implementations of
* #GInputStream or #GOutputStream) that are based on file descriptors. * #GInputStream or #GOutputStream) that are based on file descriptors.
* *
* Note that <filename>&lt;gio/gfiledescriptorbased.h&gt;</filename> belongs to * Note that `<gio/gfiledescriptorbased.h>` belongs to the UNIX-specific
* the UNIX-specific GIO interfaces, thus you have to use the * GIO interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
* *
* Since: 2.24 * Since: 2.24
* *

View File

@ -45,9 +45,10 @@ G_DEFINE_BOXED_TYPE (GResource, g_resource, g_resource_ref, g_resource_unref)
* @short_description: Resource framework * @short_description: Resource framework
* @include: gio/gio.h * @include: gio/gio.h
* *
* Applications and libraries often contain binary or textual data that is really part of the * Applications and libraries often contain binary or textual data that is
* application, rather than user data. For instance #GtkBuilder .ui files, splashscreen images, * really part of the application, rather than user data. For instance
* GMenu markup xml, CSS files, icons, etc. These are often shipped as files in <filename>$datadir/appname</filename>, or * #GtkBuilder .ui files, splashscreen images, GMenu markup xml, CSS files,
* icons, etc. These are often shipped as files in `$datadir/appname`, or
* manually included as literal strings in the code. * manually included as literal strings in the code.
* *
* The #GResource API and the <link linkend="glib-compile-resources">glib-compile-resources</link> program * The #GResource API and the <link linkend="glib-compile-resources">glib-compile-resources</link> program

View File

@ -98,8 +98,7 @@
* A DTD for the gschema XML format can be found here: <ulink url="https://git.gnome.org/browse/glib/tree/gio/gschema.dtd">gschema.dtd</ulink> * A DTD for the gschema XML format can be found here: <ulink url="https://git.gnome.org/browse/glib/tree/gio/gschema.dtd">gschema.dtd</ulink>
* *
* The <link linkend="glib-compile-schemas">glib-compile-schemas</link> * The <link linkend="glib-compile-schemas">glib-compile-schemas</link>
* tool expects schema files to have the extension * tool expects schema files to have the extension `.gschema.xml`.
* <filename>.gschema.xml</filename>
* *
* At runtime, schemas are identified by their id (as specified * At runtime, schemas are identified by their id (as specified
* in the <tag class="attribute">id</tag> attribute of the * in the <tag class="attribute">id</tag> attribute of the
@ -205,7 +204,7 @@
* ]| * ]|
* *
* glib-compile-schemas expects schema files to have the extension * glib-compile-schemas expects schema files to have the extension
* <filename>.gschema.override</filename> * `.gschema.override`.
* *
* ## Binding * ## Binding
* *

View File

@ -79,7 +79,7 @@ static gboolean g_settings_has_backend;
* implementations, but does not carry the same stability guarantees * implementations, but does not carry the same stability guarantees
* as the public GIO API. For this reason, you have to define the * as the public GIO API. For this reason, you have to define the
* C preprocessor symbol %G_SETTINGS_ENABLE_BACKEND before including * C preprocessor symbol %G_SETTINGS_ENABLE_BACKEND before including
* <filename>gio/gsettingsbackend.h</filename> * `gio/gsettingsbackend.h`.
**/ **/
static gboolean static gboolean

View File

@ -250,16 +250,15 @@ g_settings_schema_source_unref (GSettingsSchemaSource *source)
* This function is not required for normal uses of #GSettings but it * This function is not required for normal uses of #GSettings but it
* may be useful to authors of plugin management systems. * may be useful to authors of plugin management systems.
* *
* The directory should contain a file called * The directory should contain a file called `gschemas.compiled` as
* <filename>gschemas.compiled</filename> as produced by the * produced by the
* <link linkend="glib-compile-schemas">glib-compile-schemas</link> tool. * <link linkend="glib-compile-schemas">glib-compile-schemas</link> tool.
* *
* If @trusted is %TRUE then <filename>gschemas.compiled</filename> is * If @trusted is %TRUE then `gschemas.compiled` is trusted not to be
* trusted not to be corrupted. This assumption has a performance * corrupted. This assumption has a performance advantage, but can result
* advantage, but can result in crashes or inconsistent behaviour in the * in crashes or inconsistent behaviour in the case of a corrupted file.
* case of a corrupted file. Generally, you should set @trusted to * Generally, you should set @trusted to %TRUE for files installed by the
* %TRUE for files installed by the system and to %FALSE for files in * system and to %FALSE for files in the home directory.
* the home directory.
* *
* If @parent is non-%NULL then there are two effects. * If @parent is non-%NULL then there are two effects.
* *

View File

@ -338,13 +338,13 @@ _g_test_watcher_remove_pid (GPid pid)
* code tree. * code tree.
* *
* The first thing you will need is a separate service description file for the * The first thing you will need is a separate service description file for the
* D-Bus daemon. Typically a <filename>services</filename> subdirectory of * D-Bus daemon. Typically a `services` subdirectory of your `tests` directory
* your <filename>tests</filename> directory is a good place to put this file. * is a good place to put this file.
* *
* The service file should list your service along with an absolute path to the * The service file should list your service along with an absolute path to the
* uninstalled service executable in your source tree. Using autotools we would * uninstalled service executable in your source tree. Using autotools we would
* achieve this by adding a file such as <filename>my-server.service.in</filename> * achieve this by adding a file such as `my-server.service.in` in the services
* in the services directory and have it processed by configure. * directory and have it processed by configure.
* |[ * |[
* [D-BUS Service] * [D-BUS Service]
* Name=org.gtk.GDBus.Examples.ObjectManager * Name=org.gtk.GDBus.Examples.ObjectManager

View File

@ -39,9 +39,9 @@
* It contains functions to do some of the UNIX socket specific * It contains functions to do some of the UNIX socket specific
* functionality like passing file descriptors. * functionality like passing file descriptors.
* *
* Note that <filename>&lt;gio/gunixconnection.h&gt;</filename> belongs to * Note that `<gio/gunixconnection.h>` belongs to the UNIX-specific
* the UNIX-specific GIO interfaces, thus you have to use the * GIO interfaces, thus you have to use the `gio-unix-2.0.pc`
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * pkg-config file when using it.
* *
* Since: 2.22 * Since: 2.22
*/ */

View File

@ -26,9 +26,9 @@
* the %G_SOCKET_ADDRESS_UNIX family by using g_socket_send_message() * the %G_SOCKET_ADDRESS_UNIX family by using g_socket_send_message()
* and received using g_socket_receive_message(). * and received using g_socket_receive_message().
* *
* Note that <filename>&lt;gio/gunixfdlist.h&gt;</filename> belongs to * Note that `<gio/gunixfdlist.h>` belongs to the UNIX-specific GIO
* the UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
*/ */
#include "config.h" #include "config.h"

View File

@ -29,10 +29,10 @@
* stream-oriented UNIX sockets, see g_unix_connection_send_fd() and * stream-oriented UNIX sockets, see g_unix_connection_send_fd() and
* g_unix_connection_receive_fd(). * g_unix_connection_receive_fd().
* *
* Note that <filename>&lt;gio/gunixfdmessage.h&gt;</filename> belongs to * Note that `<gio/gunixfdmessage.h>` belongs to the UNIX-specific GIO
* the UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
**/ */
#include "config.h" #include "config.h"

View File

@ -51,9 +51,9 @@
* asynchronous I/O. If it refers to a regular file, it will fall back * asynchronous I/O. If it refers to a regular file, it will fall back
* to doing asynchronous I/O in another thread.) * to doing asynchronous I/O in another thread.)
* *
* Note that <filename>&lt;gio/gunixinputstream.h&gt;</filename> belongs * Note that `<gio/gunixinputstream.h>` belongs to the UNIX-specific GIO
* to the UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
*/ */
enum { enum {

View File

@ -79,9 +79,9 @@ static const char *_resolve_dev_root (void);
* *
* Routines for managing mounted UNIX mount points and paths. * Routines for managing mounted UNIX mount points and paths.
* *
* Note that <filename>&lt;gio/gunixmounts.h&gt;</filename> belongs to the * Note that `<gio/gunixmounts.h>` belongs to the UNIX-specific GIO
* UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * file when using it.
*/ */
/* /*
@ -217,8 +217,7 @@ is_in (const char *value, const char *set[])
/** /**
* g_unix_is_mount_path_system_internal: * g_unix_is_mount_path_system_internal:
* @mount_path: a mount path, e.g. <filename>/media/disk</filename> * @mount_path: a mount path, e.g. `/media/disk` or `/usr`
* or <filename>/usr</filename>
* *
* Determines if @mount_path is considered an implementation of the * Determines if @mount_path is considered an implementation of the
* OS. This is primarily used for hiding mountable and mounted volumes * OS. This is primarily used for hiding mountable and mounted volumes

View File

@ -51,9 +51,9 @@
* asynchronous I/O. If it refers to a regular file, it will fall back * asynchronous I/O. If it refers to a regular file, it will fall back
* to doing asynchronous I/O in another thread.) * to doing asynchronous I/O in another thread.)
* *
* Note that <filename>&lt;gio/gunixoutputstream.h&gt;</filename> belongs * Note that `<gio/gunixoutputstream.h>` belongs to the UNIX-specific GIO
* to the UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * when using it.
*/ */
enum { enum {

View File

@ -44,9 +44,9 @@
* errors. You can use g_unix_socket_address_abstract_names_supported() * errors. You can use g_unix_socket_address_abstract_names_supported()
* to see if abstract names are supported. * to see if abstract names are supported.
* *
* Note that <filename>&lt;gio/gunixsocketaddress.h&gt;</filename> belongs to * Note that `<gio/gunixsocketaddress.h>` belongs to the UNIX-specific GIO
* the UNIX-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config file
* <filename>gio-unix-2.0.pc</filename> pkg-config file when using it. * when using it.
*/ */
/** /**

View File

@ -63,11 +63,10 @@
* to an application via the commandline). For this purpose, GIO * to an application via the commandline). For this purpose, GIO
* allows to obtain an 'identifier' for the volume. There can be * allows to obtain an 'identifier' for the volume. There can be
* different kinds of identifiers, such as Hal UDIs, filesystem labels, * different kinds of identifiers, such as Hal UDIs, filesystem labels,
* traditional Unix devices (e.g. <filename>/dev/sda2</filename>), * traditional Unix devices (e.g. `/dev/sda2`), UUIDs. GIO uses predefined
* uuids. GIO uses predefind strings as names for the different kinds * strings as names for the different kinds of identifiers:
* of identifiers: #G_VOLUME_IDENTIFIER_KIND_HAL_UDI, * #G_VOLUME_IDENTIFIER_KIND_HAL_UDI, #G_VOLUME_IDENTIFIER_KIND_LABEL, etc.
* #G_VOLUME_IDENTIFIER_KIND_LABEL, etc. Use g_volume_get_identifier() * Use g_volume_get_identifier() to obtain an identifier for a volume.
* to obtain an identifier for a volume.
* </para> * </para>
* *
* Note that #G_VOLUME_IDENTIFIER_KIND_HAL_UDI will only be available * Note that #G_VOLUME_IDENTIFIER_KIND_HAL_UDI will only be available

View File

@ -44,9 +44,9 @@
* #GWin32InputStream implements #GInputStream for reading from a * #GWin32InputStream implements #GInputStream for reading from a
* Windows file handle. * Windows file handle.
* *
* Note that <filename>&lt;gio/gwin32inputstream.h&gt;</filename> belongs * Note that `<gio/gwin32inputstream.h>` belongs to the Windows-specific GIO
* to the Windows-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-windows-2.0.pc` pkg-config file
* <filename>gio-windows-2.0.pc</filename> pkg-config file when using it. * when using it.
*/ */
enum { enum {

View File

@ -45,9 +45,9 @@
* #GWin32OutputStream implements #GOutputStream for writing to a * #GWin32OutputStream implements #GOutputStream for writing to a
* Windows file handle. * Windows file handle.
* *
* Note that <filename>&lt;gio/gwin32outputstream.h&gt;</filename> belongs * Note that `<gio/gwin32outputstream.h>` belongs to the Windows-specific GIO
* to the Windows-specific GIO interfaces, thus you have to use the * interfaces, thus you have to use the `gio-windows-2.0.pc` pkg-config file
* <filename>gio-windows-2.0.pc</filename> pkg-config file when using it. * when using it.
*/ */
enum { enum {

View File

@ -2319,8 +2319,8 @@
* @static: empty or "static" * @static: empty or "static"
* @dll_name: the name of the (pointer to the) char array where * @dll_name: the name of the (pointer to the) char array where
* the DLL name will be stored. If this is used, you must also * the DLL name will be stored. If this is used, you must also
* include <filename>windows.h</filename>. If you need a more * include `windows.h`. If you need a more complex DLL entry
* complex DLL entry point function, you cannot use this * point function, you cannot use this
* *
* On Windows, this macro defines a DllMain() function that stores * On Windows, this macro defines a DllMain() function that stores
* the actual DLL name that the code being compiled will be included in. * the actual DLL name that the code being compiled will be included in.

View File

@ -110,8 +110,7 @@
* encoding for file names in the <link * encoding for file names in the <link
* linkend="G_FILENAME_ENCODING">`G_FILENAME_ENCODING`</link> * linkend="G_FILENAME_ENCODING">`G_FILENAME_ENCODING`</link>
* environment variable. For example, if your installation uses * environment variable. For example, if your installation uses
* ISO-8859-1 for file names, you can put this in your * ISO-8859-1 for file names, you can put this in your `~/.profile`
* <filename>~/.profile</filename>:
* <programlisting> * <programlisting>
* export G_FILENAME_ENCODING=ISO-8859-1 * export G_FILENAME_ENCODING=ISO-8859-1
* </programlisting> * </programlisting>

View File

@ -473,9 +473,9 @@ g_dngettext (const gchar *domain,
* easy-to-use form. * easy-to-use form.
* *
* In order to use these macros in an application, you must include * In order to use these macros in an application, you must include
* <filename>glib/gi18n.h</filename>. For use in a library, you must include * `&lt;glib/gi18n.h&gt;`. For use in a library, you must include
* <filename>glib/gi18n-lib.h</filename> after defining the %GETTEXT_PACKAGE * `&lt;glib/gi18n-lib.h&gt;`
* macro suitably for your library: * after defining the %GETTEXT_PACKAGE macro suitably for your library:
* |[<!-- language="C" --> * |[<!-- language="C" -->
* #define GETTEXT_PACKAGE "gtk20" * #define GETTEXT_PACKAGE "gtk20"
* #include <glib/gi18n-lib.h> * #include <glib/gi18n-lib.h>

View File

@ -208,8 +208,8 @@ g_rand_new_with_seed_array (const guint32 *seed,
* g_rand_new: * g_rand_new:
* *
* Creates a new random number generator initialized with a seed taken * Creates a new random number generator initialized with a seed taken
* either from <filename>/dev/urandom</filename> (if existing) or from * either from `/dev/urandom` (if existing) or from the current time
* the current time (as a fallback). * (as a fallback).
* *
* On Windows, the seed is taken from rand_s(). * On Windows, the seed is taken from rand_s().
* *

View File

@ -65,11 +65,9 @@
* *
* Note that the functions g_printf(), g_fprintf(), g_sprintf(), * Note that the functions g_printf(), g_fprintf(), g_sprintf(),
* g_snprintf(), g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf() * g_snprintf(), g_vprintf(), g_vfprintf(), g_vsprintf() and g_vsnprintf()
* are declared in the header <filename>gprintf.h</filename> which is * are declared in the header `gprintf.h` which is not included in `glib.h`
* not included in <filename>glib.h</filename> * (otherwise using `glib.h` would drag in `stdio.h`), so you'll have to
* (otherwise using <filename>glib.h</filename> would drag in * explicitly include `&lt;glib/gprintf.h&gt;` in order to use the GLib
* <filename>stdio.h</filename>), so you'll have to explicitly include
* <literal>&lt;glib/gprintf.h&gt;</literal> in order to use the GLib
* printf() functions. * printf() functions.
* *
* <para id="string-precision"> * <para id="string-precision">

View File

@ -188,16 +188,16 @@
/** /**
* GTestTrapFlags: * GTestTrapFlags:
* @G_TEST_TRAP_SILENCE_STDOUT: Redirect stdout of the test child to * @G_TEST_TRAP_SILENCE_STDOUT: Redirect stdout of the test child to
* <filename>/dev/null</filename> so it cannot be observed on the * `/dev/null` so it cannot be observed on the console during test
* console during test runs. The actual output is still captured * runs. The actual output is still captured though to allow later
* though to allow later tests with g_test_trap_assert_stdout(). * tests with g_test_trap_assert_stdout().
* @G_TEST_TRAP_SILENCE_STDERR: Redirect stderr of the test child to * @G_TEST_TRAP_SILENCE_STDERR: Redirect stderr of the test child to
* <filename>/dev/null</filename> so it cannot be observed on the * `/dev/null` so it cannot be observed on the console during test
* console during test runs. The actual output is still captured * runs. The actual output is still captured though to allow later
* though to allow later tests with g_test_trap_assert_stderr(). * tests with g_test_trap_assert_stderr().
* @G_TEST_TRAP_INHERIT_STDIN: If this flag is given, stdin of the * @G_TEST_TRAP_INHERIT_STDIN: If this flag is given, stdin of the
* child process is shared with stdin of its parent process. * child process is shared with stdin of its parent process.
* It is redirected to <filename>/dev/null</filename> otherwise. * It is redirected to `/dev/null` otherwise.
* *
* Test traps are guards around forked tests. * Test traps are guards around forked tests.
* These flags determine what traps to set. * These flags determine what traps to set.
@ -211,7 +211,7 @@
* GTestSubprocessFlags: * GTestSubprocessFlags:
* @G_TEST_SUBPROCESS_INHERIT_STDIN: If this flag is given, the child * @G_TEST_SUBPROCESS_INHERIT_STDIN: If this flag is given, the child
* process will inherit the parent's stdin. Otherwise, the child's * process will inherit the parent's stdin. Otherwise, the child's
* stdin is redirected to <filename>/dev/null</filename>. * stdin is redirected to `/dev/null`.
* @G_TEST_SUBPROCESS_INHERIT_STDOUT: If this flag is given, the child * @G_TEST_SUBPROCESS_INHERIT_STDOUT: If this flag is given, the child
* process will inherit the parent's stdout. Otherwise, the child's * process will inherit the parent's stdout. Otherwise, the child's
* stdout will not be visible, but it will be captured to allow * stdout will not be visible, but it will be captured to allow

View File

@ -1316,7 +1316,7 @@ rules_from_identifier (const gchar *identifier,
* time values to be added to Coordinated Universal Time (UTC) to get * time values to be added to Coordinated Universal Time (UTC) to get
* the local time. * the local time.
* *
* In Unix, the `TZ` environment variable typically corresponds * In UNIX, the `TZ` environment variable typically corresponds
* to the name of a file in the zoneinfo database, or string in * to the name of a file in the zoneinfo database, or string in
* "std offset [dst [offset],start[/time],end[/time]]" (POSIX) format. * "std offset [dst [offset],start[/time],end[/time]]" (POSIX) format.
* There are no spaces in the specification. The name of standard * There are no spaces in the specification. The name of standard
@ -1340,11 +1340,10 @@ rules_from_identifier (const gchar *identifier,
* *
* g_time_zone_new_local() calls this function with the value of the * g_time_zone_new_local() calls this function with the value of the
* `TZ` environment variable. This function itself is independent of * `TZ` environment variable. This function itself is independent of
* the value of `TZ`, but if @identifier is %NULL then * the value of `TZ`, but if @identifier is %NULL then `/etc/localtime`
* <filename>/etc/localtime</filename> will be consulted * will be consulted to discover the correct time zone on UNIX and the
* to discover the correct time zone on Unix and the registry will be * registry will be consulted or GetTimeZoneInformation() will be used
* consulted or GetTimeZoneInformation() will be used to get the local * to get the local time zone on Windows.
* time zone on Windows.
* *
* If intervals are not available, only time zone rules from `TZ` * If intervals are not available, only time zone rules from `TZ`
* environment variable or other means, then they will be computed * environment variable or other means, then they will be computed

View File

@ -26,12 +26,12 @@
* @See_also: g_locale_to_utf8(), g_locale_from_utf8() * @See_also: g_locale_to_utf8(), g_locale_from_utf8()
* *
* This section describes a number of functions for dealing with * This section describes a number of functions for dealing with
* Unicode characters and strings. There are analogues of the * Unicode characters and strings. There are analogues of the
* traditional <filename>ctype.h</filename> character classification * traditional `ctype.h` character classification and case conversion
* and case conversion functions, UTF-8 analogues of some string utility * functions, UTF-8 analogues of some string utility functions,
* functions, functions to perform normalization, case conversion and * functions to perform normalization, case conversion and collation
* collation on UTF-8 strings and finally functions to convert between * on UTF-8 strings and finally functions to convert between the UTF-8,
* the UTF-8, UTF-16 and UCS-4 encodings of Unicode. * UTF-16 and UCS-4 encodings of Unicode.
* *
* The implementations of the Unicode functions in GLib are based * The implementations of the Unicode functions in GLib are based
* on the Unicode Character Data tables, which are available from * on the Unicode Character Data tables, which are available from

View File

@ -764,10 +764,10 @@ g_get_user_name (void)
/** /**
* g_get_real_name: * g_get_real_name:
* *
* Gets the real name of the user. This usually comes from the user's entry * Gets the real name of the user. This usually comes from the user's
* in the <filename>passwd</filename> file. The encoding of the returned * entry in the `passwd` file. The encoding of the returned string is
* string is system-defined. (On Windows, it is, however, always UTF-8.) * system-defined. (On Windows, it is, however, always UTF-8.) If the
* If the real user name cannot be determined, the string "Unknown" is * real user name cannot be determined, the string "Unknown" is
* returned. * returned.
* *
* Returns: the user's real name. * Returns: the user's real name.
@ -789,18 +789,16 @@ g_get_real_name (void)
* *
* As with most UNIX tools, this function will return the value of the * As with most UNIX tools, this function will return the value of the
* `HOME` environment variable if it is set to an existing absolute path * `HOME` environment variable if it is set to an existing absolute path
* name, falling back to the <filename>passwd</filename> * name, falling back to the `passwd` file in the case that it is unset.
* file in the case that it is unset.
* *
* If the path given in `HOME` is non-absolute, does not exist, or is * If the path given in `HOME` is non-absolute, does not exist, or is
* not a directory, the result is undefined. * not a directory, the result is undefined.
* *
* Before version 2.36 this function would ignore the `HOME` environment * Before version 2.36 this function would ignore the `HOME` environment
* variable, taking the value from the <filename>passwd</filename> * variable, taking the value from the `passwd` database instead. This was
* database instead. This was changed to increase the compatibility * changed to increase the compatibility of GLib with other programs (and
* of GLib with other programs (and the XDG basedir specification) * the XDG basedir specification) and to increase testability of programs
* and to increase testability of programs based on GLib (by making * based on GLib (by making it easier to run them from test frameworks).
* it easier to run them from test frameworks).
* *
* If your program has a strong requirement for either the new or the * If your program has a strong requirement for either the new or the
* old behaviour (and if you don't wish to increase your GLib * old behaviour (and if you don't wish to increase your GLib
@ -1696,10 +1694,10 @@ g_reload_user_special_dirs_cache (void)
* *
* Returns the full path of a special directory using its logical id. * Returns the full path of a special directory using its logical id.
* *
* On Unix this is done using the XDG special user directories. * On UNIX this is done using the XDG special user directories.
* For compatibility with existing practise, %G_USER_DIRECTORY_DESKTOP * For compatibility with existing practise, %G_USER_DIRECTORY_DESKTOP
* falls back to <filename>$HOME/Desktop</filename> when XDG special * falls back to `$HOME/Desktop` when XDG special user directories have
* user directories have not been set up. * not been set up.
* *
* Depending on the platform, the user might be able to change the path * Depending on the platform, the user might be able to change the path
* of the special directory without requiring the session to restart; GLib * of the special directory without requiring the session to restart; GLib

View File

@ -891,8 +891,8 @@ g_module_name (GModule *module)
/** /**
* g_module_build_path: * g_module_build_path:
* @directory: (allow-none): the directory where the module is. This can be %NULL * @directory: (allow-none): the directory where the module is. This can be
* or the empty string to indicate that the standard platform-specific * %NULL or the empty string to indicate that the standard platform-specific
* directories will be used, though that is not recommended * directories will be used, though that is not recommended
* @module_name: the name of the module * @module_name: the name of the module
* *
@ -906,10 +906,9 @@ g_module_name (GModule *module)
* since the wrong module may be found. * since the wrong module may be found.
* *
* For example, calling g_module_build_path() on a Linux system with a * For example, calling g_module_build_path() on a Linux system with a
* @directory of <filename>/lib</filename> and a @module_name of "mylibrary" * @directory of `/lib` and a @module_name of "mylibrary" will return
* will return <filename>/lib/libmylibrary.so</filename>. On a Windows system, * `/lib/libmylibrary.so`. On a Windows system, using `\Windows` as the
* using <filename>\Windows</filename> as the directory it will return * directory it will return `\Windows\mylibrary.dll`.
* <filename>\Windows\mylibrary.dll</filename>.
* *
* Returns: the complete path of the module, including the standard library * Returns: the complete path of the module, including the standard library
* prefix and suffix. This should be freed when no longer needed * prefix and suffix. This should be freed when no longer needed