docs: Move the GCancellable SECTION

Move the contents into the struct docs.

Helps: #3037
This commit is contained in:
Matthias Clasen 2023-09-26 20:13:31 -04:00 committed by Philip Withnall
parent 3d5d3bceea
commit e267653eab
2 changed files with 4 additions and 9 deletions

View File

@ -29,11 +29,11 @@
/** /**
* SECTION:gcancellable * GCancellable:
* @short_description: Thread-safe Operation Cancellation Stack
* @include: gio/gio.h
* *
* GCancellable is a thread-safe operation cancellation stack used * `GCancellable` allows operations to be cancelled.
*
* `GCancellable` is a thread-safe operation cancellation stack used
* throughout GIO to allow for cancellation of synchronous and * throughout GIO to allow for cancellation of synchronous and
* asynchronous operations. * asynchronous operations.
*/ */

View File

@ -38,11 +38,6 @@ G_BEGIN_DECLS
#define G_IS_CANCELLABLE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_CANCELLABLE)) #define G_IS_CANCELLABLE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_CANCELLABLE))
#define G_CANCELLABLE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_CANCELLABLE, GCancellableClass)) #define G_CANCELLABLE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_CANCELLABLE, GCancellableClass))
/**
* GCancellable:
*
* Allows actions to be cancelled.
*/
typedef struct _GCancellableClass GCancellableClass; typedef struct _GCancellableClass GCancellableClass;
typedef struct _GCancellablePrivate GCancellablePrivate; typedef struct _GCancellablePrivate GCancellablePrivate;