From a79f35612b082f6fb99130f6606e210ecd5eedb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 7 Apr 2022 12:00:34 +0200 Subject: [PATCH] tests/clutter/grab: Use clutter_event_get_name() This changes the debug output slightly, but that's fine. Part-of: --- src/tests/clutter/conform/grab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/clutter/conform/grab.c b/src/tests/clutter/conform/grab.c index b5ee3f41f..4040773d1 100644 --- a/src/tests/clutter/conform/grab.c +++ b/src/tests/clutter/conform/grab.c @@ -2,6 +2,7 @@ #include #include "tests/clutter-test-utils.h" +#include "clutter/clutter-event-private.h" typedef struct { @@ -57,7 +58,7 @@ event_cb (ClutterActor *actor, EventLog entry = { clutter_actor_get_name (actor), event->type }; g_debug ("Event '%s' on actor '%s'", - entry.type == CLUTTER_ENTER ? "ENTER" : "LEAVE", + clutter_event_get_name (event), entry.name); g_array_append_val (events, entry); }