mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
26344fb533
commit
b408be0b1e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user