gtk-demo: Stop using gtk_root_get_for_surface

This commit is contained in:
Matthias Clasen
2019-04-27 05:02:13 +00:00
parent e34b1421f7
commit 1438b4c4d4

View File

@@ -74,7 +74,7 @@ find_toplevel_at_pointer (GdkDisplay *display)
pointer_window = gdk_device_get_surface_at_position (gtk_get_current_event_device (), NULL, NULL);
if (pointer_window)
widget = GTK_WIDGET (gtk_root_get_for_surface (pointer_window));
widget = GTK_WIDGET (gtk_bud_get_for_surface (pointer_window));
return widget;
}