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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user