inspector: Avoid an array overrun
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2020 15:51:54 +0000 (10:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jan 2020 16:49:16 +0000 (11:49 -0500)
Commit 3f56af373891bf6e3 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
gtk/inspector/general.c

index 4f575de4a908b1b7d144737d5d7b21086f990bb0..5d50c67b0fee32fe947bd002045d8c702d3e7451 100644 (file)
@@ -672,7 +672,8 @@ add_device (GtkInspectorGeneral *gen,
     "Keyboard",
     "Touchscreen",
     "Touchpad",
-    "Trackpoint"
+    "Trackpoint",
+    "Pad"
   };
 
   name = gdk_device_get_name (device);