From c9df9978d27c117d3a0aa83380039e576da21b64 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Nov 2022 07:18:41 +0100 Subject: [PATCH] Inspector: Add a missing event type We did not have a name for the new touchpad hold events. To prevent this from happening again in the future, add a static assertion. --- gtk/inspector/recorder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c index e0920365ca..8d960411d6 100644 --- a/gtk/inspector/recorder.c +++ b/gtk/inspector/recorder.c @@ -1443,9 +1443,12 @@ event_type_name (GdkEventType type) "Pad Button Release", "Pad Rind", "Pad Strip", - "Pad Group Mode" + "Pad Group Mode", + "Touchpad Hold", }; + G_STATIC_ASSERT (G_N_ELEMENTS (event_name) == GDK_EVENT_LAST); + return event_name[type]; } -- 2.30.2