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.
This commit is contained in:
Matthias Clasen 2022-11-15 07:18:41 +01:00
parent 2daea9e459
commit c9df9978d2

View File

@ -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];
}