testgtk: Don't use deprecated functions in properties example

This commit is contained in:
Benjamin Otte 2011-11-09 03:13:43 +01:00
parent 2783158f8d
commit f41262320c

View File

@ -8321,8 +8321,9 @@ find_widget_at_pointer (GdkDevice *device)
if (widget)
{
gdk_window_get_pointer (gtk_widget_get_window (widget),
&x, &y, NULL);
gdk_window_get_device_position (gtk_widget_get_window (widget),
device,
&x, &y, NULL);
data.x = x;
data.y = y;