docs: Move the GClosure SECTION

Move the contents to the struct docs.

Helps: #3037
This commit is contained in:
Matthias Clasen 2023-09-25 15:32:12 -04:00 committed by Philip Withnall
parent 7eba4e8f49
commit bedf11b330
2 changed files with 8 additions and 14 deletions

View File

@ -39,11 +39,13 @@
/** /**
* SECTION:gclosure * GClosure:
* @short_description: Functions as first-class objects * @in_marshal: Indicates whether the closure is currently being invoked with
* @title: Closures * g_closure_invoke()
* @is_invalid: Indicates whether the closure has been invalidated by
* g_closure_invalidate()
* *
* A #GClosure represents a callback supplied by the programmer. * A `GClosure` represents a callback supplied by the programmer.
* *
* It will generally comprise a function of some kind and a marshaller * It will generally comprise a function of some kind and a marshaller
* used to call it. It is the responsibility of the marshaller to * used to call it. It is the responsibility of the marshaller to

View File

@ -169,15 +169,7 @@ struct _GClosureNotifyData
gpointer data; gpointer data;
GClosureNotify notify; GClosureNotify notify;
}; };
/**
* GClosure:
* @in_marshal: Indicates whether the closure is currently being invoked with
* g_closure_invoke()
* @is_invalid: Indicates whether the closure has been invalidated by
* g_closure_invalidate()
*
* A #GClosure represents a callback supplied by the programmer.
*/
struct _GClosure struct _GClosure
{ {
/*< private >*/ /*< private >*/