gtk-demo: Don't use deprecated code

This commit is contained in:
Benjamin Otte 2011-10-28 13:18:31 -07:00
parent 86af3ea4e9
commit 9788bfac89

View File

@ -126,7 +126,7 @@ scribble_motion_notify_event (GtkWidget *widget,
* can cope.
*/
gdk_window_get_pointer (event->window, &x, &y, &state);
gdk_window_get_device_position (event->window, event->device, &x, &y, &state);
if (state & GDK_BUTTON1_MASK)
draw_brush (widget, x, y);