Commit 9788bfac authored by Benjamin Otte's avatar Benjamin Otte

gtk-demo: Don't use deprecated code

parent 86af3ea4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment