mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
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.
This commit is contained in:
parent
60fdeda599
commit
794d9d266e
@ -64,7 +64,7 @@ inspector_pick (GtkWidget *widget,
|
|||||||
|
|
||||||
gtk_widget_get_origin_relative_to_parent (child, &dx, &dy);
|
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)
|
if (picked)
|
||||||
return picked;
|
return picked;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user