forked from enlightenment/efl
Evas: Move smart_members_get to legacy
Going forward, we prefer to return iterators rather than lists.
This commit is contained in:
parent
3d1e474fc6
commit
2a0bb33f1d
|
@ -5191,6 +5191,26 @@ EAPI Evas_Smart *evas_object_smart_smart_get(const Evas_Object *obj) EINA_WARN_U
|
|||
EAPI void evas_object_smart_data_set(Evas_Object *obj, void *data);
|
||||
EAPI void *evas_object_smart_data_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* @brief Retrieves the list of the member objects of a given Evas smart
|
||||
* object.
|
||||
*
|
||||
* The returned list should be freed with @c eina_list_free() when you no
|
||||
* longer need it.
|
||||
*
|
||||
* This function will return @c null when a non-smart object is passed.
|
||||
*
|
||||
* See also @ref Evas.Object.Smart.member_add,
|
||||
* @ref Evas.Object.Smart.member_del and @ref evas_object_smart_iterator_new.
|
||||
*
|
||||
* @return Returns the list of the member objects of @c obj.
|
||||
*
|
||||
* @since 1.7
|
||||
*
|
||||
* @ingroup Evas_Object_Smart
|
||||
*/
|
||||
EAPI Eina_List *evas_object_smart_members_get(const Evas_Object *obj) EINA_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
* This gets the internal counter that counts the number of smart calculations
|
||||
*
|
||||
|
|
|
@ -464,9 +464,10 @@ _evas_object_smart_iterator_new(const Eo *eo_obj, Evas_Smart_Data *priv)
|
|||
return &it->iterator;
|
||||
}
|
||||
|
||||
EOLIAN static Eina_List*
|
||||
_evas_object_smart_members_get(Eo *eo_obj EINA_UNUSED, Evas_Smart_Data *o)
|
||||
EAPI Eina_List*
|
||||
evas_object_smart_members_get(const Evas_Object *eo_obj)
|
||||
{
|
||||
EVAS_OBJECT_SMART_GET_OR_RETURN(eo_obj, NULL);
|
||||
Eina_List *members = NULL;
|
||||
Eina_Inlist *member;
|
||||
|
||||
|
|
|
@ -62,21 +62,6 @@ class Evas.Object.Smart (Evas.Object)
|
|||
a: int;
|
||||
}
|
||||
}
|
||||
@property members {
|
||||
get {
|
||||
[[Retrieves the list of the member objects of a given Evas smart object.
|
||||
|
||||
The returned list should be freed with $eina_list_free() when you
|
||||
no longer need it.
|
||||
|
||||
This function will return $null when a non-smart object is passed.
|
||||
|
||||
See also @.member_add, @.member_del and @.iterator_new.
|
||||
|
||||
@since 1.7]]
|
||||
return: list<Evas.Object> @warn_unused; [[Returns the list of the member objects of $obj.]]
|
||||
}
|
||||
}
|
||||
show {
|
||||
[[No description supplied by the EAPI.]]
|
||||
legacy: null;
|
||||
|
|
Loading…
Reference in New Issue