From 92c98d5522c465b7b6a00f78186280f78d379592 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sun, 14 Nov 2021 18:17:00 +0100 Subject: [PATCH] clutter/timeline: Make the warning about detached actors more helpful By including the debug name of the actor and the duration of the animation the source of such detached actors can be more easily determined. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2011 Part-of: --- clutter/clutter/clutter-timeline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-timeline.c b/clutter/clutter/clutter-timeline.c index 0c9fd2c1c..afe087620 100644 --- a/clutter/clutter/clutter-timeline.c +++ b/clutter/clutter/clutter-timeline.c @@ -97,6 +97,7 @@ #include "clutter-timeline.h" #include "deprecated/clutter-timeline.h" +#include "clutter-actor-private.h" #include "clutter-debug.h" #include "clutter-easing.h" #include "clutter-enum-types.h" @@ -428,7 +429,10 @@ update_frame_clock (ClutterTimeline *timeline) if (!stage) { if (priv->is_playing) - g_warning ("Timelines with detached actors are not supported"); + g_warning ("Timelines with detached actors are not supported. " + "%s in animation of duration %ums but not on stage.", + _clutter_actor_get_debug_name (priv->actor), + priv->duration); goto out; }