tests/clutter/grab: Use clutter_event_get_name()

This changes the debug output slightly, but that's fine.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2628>
This commit is contained in:
Jonas Ådahl 2022-04-07 12:00:34 +02:00 committed by Carlos Garnacho
parent b32ee7225d
commit a79f35612b

View File

@ -2,6 +2,7 @@
#include <clutter/clutter.h> #include <clutter/clutter.h>
#include "tests/clutter-test-utils.h" #include "tests/clutter-test-utils.h"
#include "clutter/clutter-event-private.h"
typedef struct typedef struct
{ {
@ -57,7 +58,7 @@ event_cb (ClutterActor *actor,
EventLog entry = { clutter_actor_get_name (actor), event->type }; EventLog entry = { clutter_actor_get_name (actor), event->type };
g_debug ("Event '%s' on actor '%s'", g_debug ("Event '%s' on actor '%s'",
entry.type == CLUTTER_ENTER ? "ENTER" : "LEAVE", clutter_event_get_name (event),
entry.name); entry.name);
g_array_append_val (events, entry); g_array_append_val (events, entry);
} }