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:
parent
4358f8da7c
commit
c6b3c90e41
@ -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__ */
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user