gobject: Fix invalid doc links

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

Helps: #3037
This commit is contained in:
Philip Withnall 2023-10-23 11:16:44 +01:00
parent 160e5db742
commit 016aacbda8
3 changed files with 12 additions and 12 deletions

View File

@ -50,7 +50,7 @@
* using a use count - it starts at zero, and whenever it is greater than * using a use count - it starts at zero, and whenever it is greater than
* zero, the module is loaded. The use count is maintained internally by * zero, the module is loaded. The use count is maintained internally by
* the type system, but also can be explicitly controlled by * the type system, but also can be explicitly controlled by
* [func@GObject.type_module_use] and [func@GObject.type_module_unuse]. * [method@GObject.TypeModule.use] and [method@GObject.TypeModule.unuse].
* Typically, when loading a module for the first type, `g_type_module_use()` * Typically, when loading a module for the first type, `g_type_module_use()`
* will be used to load it so that it can initialize its types. At some later * will be used to load it so that it can initialize its types. At some later
* point, when the module no longer needs to be loaded except for the type * point, when the module no longer needs to be loaded except for the type

View File

@ -39,25 +39,25 @@
* new_type_plugin, * new_type_plugin,
* type_flags); * type_flags);
* ``` * ```
* where @new_type_plugin is an implementation of the * where `new_type_plugin` is an implementation of the
* `GTypePlugin` interface. * `GTypePlugin` interface.
* *
* 2. The type's implementation is referenced, e.g. through * 2. The type's implementation is referenced, e.g. through
* [func@GObject.type_class_ref] or through [func@GObject.type_create_instance] * [func@GObject.TypeClass.ref] or through [func@GObject.type_create_instance]
* (this is being called by [func@GObject.object_new]) or through one of the above * (this is being called by [ctor@GObject.Object.new]) or through one of the above
* done on a type derived from @new_type_id. * done on a type derived from `new_type_id`.
* *
* 3. This causes the type system to load the type's implementation by calling * 3. This causes the type system to load the type's implementation by calling
* [func@GObject.type_plugin_use] and [method@GObject.TypePlugin.complete_type_info] * [method@GObject.TypePlugin.use] and [method@GObject.TypePlugin.complete_type_info]
* on @new_type_plugin. * on `new_type_plugin`.
* *
* 4. At some point the type's implementation isn't required anymore, e.g. after * 4. At some point the type's implementation isn't required anymore, e.g. after
* [func@GObject.type_class_unref] or [func@GObject.type_free_instance] * [method@GObject.TypeClass.unref] or [func@GObject.type_free_instance]
* (called when the reference count of an instance drops to zero). * (called when the reference count of an instance drops to zero).
* *
* 5. This causes the type system to throw away the information retrieved * 5. This causes the type system to throw away the information retrieved
* from [method@GObject.TypePlugin.complete_type_info] and then it calls * from [method@GObject.TypePlugin.complete_type_info] and then it calls
* [method@GObject.TypePlugin.unuse] on @new_type_plugin. * [method@GObject.TypePlugin.unuse] on `new_type_plugin`.
* *
* 6. Things may repeat from the second step. * 6. Things may repeat from the second step.
* *
@ -70,7 +70,7 @@
* [method@GObject.TypePlugin.use] and [method@GObject.TypePlugin.complete_type_info] * [method@GObject.TypePlugin.use] and [method@GObject.TypePlugin.complete_type_info]
* again when the type is needed again. * again when the type is needed again.
* *
* [struct@GObject.TypeModule] is an implementation of `GTypePlugin` that * [class@GObject.TypeModule] is an implementation of `GTypePlugin` that
* already implements most of this except for the actual module loading and * already implements most of this except for the actual module loading and
* unloading. It even handles multiple registered types per module. * unloading. It even handles multiple registered types per module.
*/ */

View File

@ -44,8 +44,8 @@
* `GValueArray` is deprecated in favour of `GArray` since GLib 2.32. * `GValueArray` is deprecated in favour of `GArray` since GLib 2.32.
* It is possible to create a `GArray` that behaves like a `GValueArray` * It is possible to create a `GArray` that behaves like a `GValueArray`
* by using the size of `GValue` as the element size, and by setting * by using the size of `GValue` as the element size, and by setting
* [func@GObject.value_unset] as the clear function using * [method@GObject.Value.unset] as the clear function using
* [method@GLib.Array.set_clear_func], for instance, the following code: * [func@GLib.Array.set_clear_func], for instance, the following code:
* *
* ```c * ```c
* GValueArray *array = g_value_array_new (10); * GValueArray *array = g_value_array_new (10);