[glib] Fix documentation typos in GTask and GCancellable examples



commit 7e9e7a66a1820478c87d3fadd47869eed88ef6f3
Author: Daiki Ueno <ueno unixuser org>
Date:   Thu Dec 5 18:16:36 2013 +0900

    Fix documentation typos in GTask and GCancellable examples
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719884

 gio/gcancellable.c |    2 +-
 gio/gtask.c        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index 2e3b4a0..8f66e83 100644
--- a/gio/gcancellable.c
+++ b/gio/gcancellable.c
@@ -111,7 +111,7 @@ g_cancellable_class_init (GCancellableClass *klass)
    * An example of how to us this:
    * |[
    *     /<!-- -->* 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;
    *
    *     /<!-- -->* Set up all the data needed to be able to
diff --git a/gio/gtask.c b/gio/gtask.c
index 3c7341b..07a3210 100644
--- a/gio/gtask.c
+++ b/gio/gtask.c
@@ -232,7 +232,7 @@
  *       bd->cake = cake;
  *
  *       /&ast; Bail out now if the user has already cancelled &ast;/
- *       if (g_task_return_error_if_cancelled (g_task_get_cancellable (task)))
+ *       if (g_task_return_error_if_cancelled (task))
  *         {
  *           g_object_unref (task);
  *           return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]