util: Rename function to calls_find_in_model() and adjust documentation

Since it works for GListModel rename it appropriately.

It used to provide an inline implementation for g_list_store_find()
behind a glib version guard, but we bumped minimum version in
cfd3c2a7fe
so the docstring was updated and made more succinct.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-10-10 08:39:42 +02:00
parent 0bcf3fa08e
commit 29a2059e0e
4 changed files with 6 additions and 7 deletions

View File

@@ -95,16 +95,15 @@ calls_number_is_ussd (const char *number)
}
/**
* calls_find_in_store:
* calls_find_in_model:
* @list: A #GListModel
* @item: The #gpointer to find
* @position: (out) (optional): The first position of @item, if it was found.
*
* Returns: Whether @list contains @item. This is mainly a convenience function
* until we no longer support older glib versions.
* Returns: %TRUE if @list contains @item, %FALSE otherwise.
*/
gboolean
calls_find_in_store (GListModel *list,
calls_find_in_model (GListModel *list,
gpointer item,
guint *position)
{