From: Matthias Clasen Date: Tue, 15 Nov 2022 06:18:41 +0000 (+0100) Subject: Inspector: Add a missing event type X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~100^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c9df9978d27c117d3a0aa83380039e576da21b64;p=gtk4.git 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. --- 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]; }