inspector: Avoid an array overrun

Commit 3f56af3738 added a new value to the
GdkInputSource enum, forgetting that the inspector
has an array of names to match this enum.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2385
This commit is contained in:
Matthias Clasen
2020-01-18 10:51:54 -05:00
parent cbf5768e91
commit 11568b158f

View File

@ -511,7 +511,8 @@ add_device (GtkInspectorGeneral *gen,
"Keyboard",
"Touchscreen",
"Touchpad",
"Trackpoint"
"Trackpoint",
"Pad"
};
name = gdk_device_get_name (device);