mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
Fix documentation typos in GTask and GCancellable examples
https://bugzilla.gnome.org/show_bug.cgi?id=719884
This commit is contained in:
@@ -111,7 +111,7 @@ g_cancellable_class_init (GCancellableClass *klass)
|
|||||||
* An example of how to us this:
|
* An example of how to us this:
|
||||||
* |[
|
* |[
|
||||||
* /<!-- -->* Make sure we don't do any unnecessary work if already cancelled *<!-- -->/
|
* /<!-- -->* Make sure we don't do any unnecessary work if already cancelled *<!-- -->/
|
||||||
* if (g_cancellable_set_error_if_cancelled (cancellable))
|
* if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||||
* return;
|
* return;
|
||||||
*
|
*
|
||||||
* /<!-- -->* Set up all the data needed to be able to
|
* /<!-- -->* Set up all the data needed to be able to
|
||||||
|
@@ -232,7 +232,7 @@
|
|||||||
* bd->cake = cake;
|
* bd->cake = cake;
|
||||||
*
|
*
|
||||||
* /* Bail out now if the user has already cancelled */
|
* /* Bail out now if the user has already cancelled */
|
||||||
* if (g_task_return_error_if_cancelled (g_task_get_cancellable (task)))
|
* if (g_task_return_error_if_cancelled (task))
|
||||||
* {
|
* {
|
||||||
* g_object_unref (task);
|
* g_object_unref (task);
|
||||||
* return;
|
* return;
|
||||||
|
Reference in New Issue
Block a user