Add note in g_sequence_search() doc about g_sequence_lookup()

This commit is contained in:
Xavier Claessens 2010-12-10 10:17:44 +01:00
parent 50f96ae79b
commit e666a2ed69

View File

@ -761,6 +761,9 @@ g_sequence_sort_changed (GSequenceIter *iter,
* Returns an iterator pointing to the position where @data would
* be inserted according to @cmp_func and @cmp_data.
*
* If you are simply searching for an existing element of the sequence,
* consider using g_sequence_lookup().
*
* Return value: an #GSequenceIter pointing to the position where @data
* would have been inserted according to @cmp_func and @cmp_data.
*
@ -1015,6 +1018,9 @@ g_sequence_insert_sorted_iter (GSequence *seq,
* a #GSequenceIterCompareFunc instead of a #GCompareDataFunc as
* the compare function.
*
* If you are simply searching for an existing element of the sequence,
* consider using g_sequence_lookup_iter().
*
* Return value: a #GSequenceIter pointing to the position in @seq
* where @data would have been inserted according to @iter_cmp and @cmp_data.
*