docs: Move the GSimplePermission SECTION

Move it to the struct docs.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-10-24 10:57:17 +01:00
parent 2fc8f47358
commit 0b0179678a

View File

@ -25,24 +25,15 @@
#include "gpermission.h"
/**
* SECTION:gsimplepermission
* @title: GSimplePermission
* @short_description: A GPermission that doesn't change value
* @include: gio/gio.h
*
* #GSimplePermission is a trivial implementation of #GPermission that
* represents a permission that is either always or never allowed. The
* value is given at construction and doesn't change.
*
* Calling request or release will result in errors.
**/
/**
* GSimplePermission:
*
* #GSimplePermission is an opaque data structure. There are no methods
* except for those defined by #GPermission.
* `GSimplePermission` is a trivial implementation of [class@Gio.Permission]
* that represents a permission that is either always or never allowed. The
* value is given at construction and doesnt change.
*
* Calling [method@Gio.Permission.acquire] or [method@Gio.Permission.release]
* on a `GSimplePermission` will result in errors.
**/
typedef GPermissionClass GSimplePermissionClass;