summaryrefslogtreecommitdiff
path: root/gtk/inspector
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-11-15 07:18:41 +0100
committerMatthias Clasen <mclasen@redhat.com>2022-11-15 07:18:41 +0100
commitc9df9978d27c117d3a0aa83380039e576da21b64 (patch)
treef4aa0268f2434d33130fda31eea84bc82fcf2c11 /gtk/inspector
parent2daea9e459674b07a46a51e4188dac6f2dde769e (diff)
downloadgtk+-c9df9978d27c117d3a0aa83380039e576da21b64.tar.gz
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.
Diffstat (limited to 'gtk/inspector')
-rw-r--r--gtk/inspector/recorder.c5
1 files changed, 4 insertions, 1 deletions
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];
}