[Telepathy-commits] [telepathy-glib/master] MessageMixin: note that g_queue_find_custom's func should return 0 on success

Will Thompson will.thompson at collabora.co.uk
Thu Dec 18 10:41:48 PST 2008


---
 telepathy-glib/message-mixin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/message-mixin.c b/telepathy-glib/message-mixin.c
index 8c970bd..24a7a71 100644
--- a/telepathy-glib/message-mixin.c
+++ b/telepathy-glib/message-mixin.c
@@ -726,6 +726,9 @@ pending_item_id_equals_data (gconstpointer item,
   const TpMessage *self = item;
   guint id = GPOINTER_TO_UINT (data);
 
+  /* The sense of this comparison is correct: the callback passed to
+   * g_queue_find_custom() should return 0 when the desired item is found.
+   */
   return (self->incoming_id != id);
 }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list