mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
docs: Clarify the Actor's iterator API behaviour
It should be noted in the documentation that it is not safe to operate on the list of children of an Actor while iterating over it.
This commit is contained in:
parent
4f470b9231
commit
673961f40c
@ -15496,7 +15496,8 @@ clutter_actor_get_background_color (ClutterActor *self,
|
||||
* of children of @self's parent.
|
||||
*
|
||||
* The returned pointer is only valid until the scene graph changes; it
|
||||
* is guaranteed to remain the same during the paint sequence.
|
||||
* is not safe to modify the list of children of @self while iterating
|
||||
* it.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to a #ClutterActor, or %NULL
|
||||
*
|
||||
@ -15517,7 +15518,9 @@ clutter_actor_get_previous_sibling (ClutterActor *self)
|
||||
* Retrieves the sibling of @self that comes after it in the list
|
||||
* of children of @self's parent.
|
||||
*
|
||||
* The returned pointer is only valid until the scene graph changes.
|
||||
* The returned pointer is only valid until the scene graph changes; it
|
||||
* is not safe to modify the list of children of @self while iterating
|
||||
* it.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to a #ClutterActor, or %NULL
|
||||
*
|
||||
@ -15537,7 +15540,9 @@ clutter_actor_get_next_sibling (ClutterActor *self)
|
||||
*
|
||||
* Retrieves the first child of @self.
|
||||
*
|
||||
* The returned pointer is only valid until the scene graph changes.
|
||||
* The returned pointer is only valid until the scene graph changes; it
|
||||
* is not safe to modify the list of children of @self while iterating
|
||||
* it.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to a #ClutterActor, or %NULL
|
||||
*
|
||||
@ -15557,7 +15562,9 @@ clutter_actor_get_first_child (ClutterActor *self)
|
||||
*
|
||||
* Retrieves the last child of @self.
|
||||
*
|
||||
* The returned pointer is only valid until the scene graph changes.
|
||||
* The returned pointer is only valid until the scene graph changes; it
|
||||
* is not safe to modify the list of children of @self while iterating
|
||||
* it.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to a #ClutterActor, or %NULL
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user