clutter/actor: Return NULL instead of FALSE when type check fails

Fix a small oversight in clutter_actor_peek_stage_views(), it should return
NULL instead of FALSE when the check fails.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2679>
This commit is contained in:
Jonas Dreßler 2023-05-25 16:41:39 +02:00 committed by Marge Bot
parent 26344fb533
commit b408be0b1e

View File

@ -15642,7 +15642,7 @@ clutter_actor_finish_layout (ClutterActor *self,
GList *
clutter_actor_peek_stage_views (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), NULL);
return CLUTTER_ACTOR_IS_TOPLEVEL (self)
? clutter_stage_peek_stage_views (CLUTTER_STAGE (self))