From 794d9d266e35b1eee87221b6687a39aa490c50db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 26 Jan 2018 17:28:25 +0100 Subject: [PATCH] inspector: Actually call the pick() vfunc when picking Otherwise, overridden pick vfuncs don't work and we e.g. pick widgets scrolled away in a viewport. --- gtk/inspector/inspect-button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/inspect-button.c b/gtk/inspector/inspect-button.c index 987eb4f4a7..85a0c17e78 100644 --- a/gtk/inspector/inspect-button.c +++ b/gtk/inspector/inspect-button.c @@ -64,7 +64,7 @@ inspector_pick (GtkWidget *widget, gtk_widget_get_origin_relative_to_parent (child, &dx, &dy); - picked = inspector_pick (child, x - dx, y - dy); + picked = GTK_WIDGET_GET_CLASS (child)->pick (child, x - dx, y - dy); if (picked) return picked; }