mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
gtk-demo: Don't use deprecated code
This commit is contained in:
parent
86af3ea4e9
commit
9788bfac89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user