From fe8785862ab1a9d7b63940d79e2ec644302c332b Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 14 Nov 2023 14:11:13 +0000 Subject: [PATCH] docs: Move the GIOError SECTION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move it to a separate page as there’s no struct documentation to hang it off. Signed-off-by: Philip Withnall Helps: #3037 --- docs/reference/gio/error.md | 12 ++++++++++++ docs/reference/gio/gio.toml.in | 3 +++ docs/reference/gio/meson.build | 1 + gio/gioerror.c | 8 -------- 4 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 docs/reference/gio/error.md diff --git a/docs/reference/gio/error.md b/docs/reference/gio/error.md new file mode 100644 index 000000000..bc61b94ee --- /dev/null +++ b/docs/reference/gio/error.md @@ -0,0 +1,12 @@ +Title: GIOError +SPDX-License-Identifier: LGPL-2.1-or-later +SPDX-FileCopyrightText: 2007 A. Walton + +# GIOError + +Contains helper functions for reporting errors to the user. + +Functions for converting between different error reporting mechanisms: + * [func@Gio.io_error_from_errno] + * [func@Gio.io_error_from_file_error] + diff --git a/docs/reference/gio/gio.toml.in b/docs/reference/gio/gio.toml.in index 7e72fdef9..8b1af9ce2 100644 --- a/docs/reference/gio/gio.toml.in +++ b/docs/reference/gio/gio.toml.in @@ -43,6 +43,9 @@ content_files = [ "overview.md", "file-attributes.md", "tls-overview.md", + + "error.md", + "dbus-error.md", "dbus-introspection.md", "dbus-name-owning.md", diff --git a/docs/reference/gio/meson.build b/docs/reference/gio/meson.build index 8f4df9e00..3b09ccddf 100644 --- a/docs/reference/gio/meson.build +++ b/docs/reference/gio/meson.build @@ -230,6 +230,7 @@ expand_content_files = [ 'dbus-name-owning.md', 'dbus-name-watching.md', 'dbus-utils.md', + 'error.md', 'file-attributes.md', 'migrating-gconf.md', 'migrating-gdbus.md', diff --git a/gio/gioerror.c b/gio/gioerror.c index d662b9402..1b64dfd0b 100644 --- a/gio/gioerror.c +++ b/gio/gioerror.c @@ -30,14 +30,6 @@ #include #endif -/** - * SECTION:gioerror - * @short_description: Error helper functions - * @include: gio/gio.h - * - * Contains helper functions for reporting errors to the user. - **/ - /** * g_io_error_quark: *