[glib] Clarify "current condition" in g_socket_create_source docs



commit 6d01593b061afb52d22891a371fb29f42d4d62cc
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 20 11:30:43 2009 +0200

    Clarify "current condition" in g_socket_create_source docs
---
 gio/gsocket.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gio/gsocket.c b/gio/gsocket.c
index 1201be7..e5e6fe8 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -2308,8 +2308,10 @@ winsock_source_new (GSocket      *socket,
  * these conditions will always be reported output if they are true.
  *
  * @cancellable if not %NULL can be used to cancel the source, which will
- * cause the source to trigger, reporting the current condition. You can
- * check for this in the callback using g_cancellable_is_cancelled().
+ * cause the source to trigger, reporting the current condition (which
+ * is likely 0 unless cancellation happened at the same time as a
+ * condition change). You can check for this in the callback using
+ * g_cancellable_is_cancelled().
  *
  * Returns: a newly allocated %GSource, free with g_source_unref().
  *



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