diff --git a/gtk/inspector/gestures.c b/gtk/inspector/gestures.c index e448d5fd79..925a444aa5 100644 --- a/gtk/inspector/gestures.c +++ b/gtk/inspector/gestures.c @@ -195,7 +195,12 @@ gtk_inspector_gestures_set_object (GtkInspectorGestures *sl, { list = _gtk_widget_list_controllers (GTK_WIDGET (object), phase); for (l = list; l; l = l->next) - g_hash_table_insert (hash, l->data, GINT_TO_POINTER (phase)); + { + GtkEventController *controller = l->data; + + if (GTK_IS_GESTURE (controller)) + g_hash_table_insert (hash, controller, GINT_TO_POINTER (phase)); + } g_list_free (list); }