[mutter] clutter/timeline: Make the warning about detached actors more helpful



commit 92c98d5522c465b7b6a00f78186280f78d379592
Author: Sebastian Keller <skeller gnome org>
Date:   Sun Nov 14 18:17:00 2021 +0100

    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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2088>

 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 0c9fd2c1c5..afe087620f 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;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]