clutter/actor: Introduce private function to peek actions

We'll need to take a look at the actions of actors twice for every
single event emission once we move emission to the stage, let's not copy
around lists for that.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2342>
This commit is contained in:
Jonas Dreßler 2022-08-03 18:39:44 +02:00 committed by Marge Bot
parent 4358f8da7c
commit c6b3c90e41
2 changed files with 13 additions and 0 deletions

View File

@ -279,6 +279,8 @@ void clutter_actor_collect_event_actors (ClutterActor *self,
ClutterActor *deepmost,
GPtrArray *actors);
const GList * clutter_actor_peek_actions (ClutterActor *self);
G_END_DECLS
#endif /* __CLUTTER_ACTOR_PRIVATE_H__ */

View File

@ -19195,3 +19195,14 @@ clutter_actor_collect_event_actors (ClutterActor *self,
g_ptr_array_add (actors, g_object_ref (self));
}
}
const GList *
clutter_actor_peek_actions (ClutterActor *self)
{
ClutterActorPrivate *priv = self->priv;
if (priv->actions == NULL)
return NULL;
return _clutter_meta_group_peek_metas (priv->actions);
}