summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-10-28 13:18:31 -0700
committerBenjamin Otte <otte@redhat.com>2011-11-02 02:32:54 +0100
commit9788bfac894cb6213dc6aae6689247eeb3f4d6cc (patch)
treeea156a67688680f08861b44ae9b680e4fed3725c /demos
parent86af3ea4e9bac971f4c4314f595d0a102dac677e (diff)
downloadgtk+-9788bfac894cb6213dc6aae6689247eeb3f4d6cc.tar.gz
gtk-demo: Don't use deprecated code
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/drawingarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c
index bd9b1e9aca..f3aa13865c 100644
--- a/demos/gtk-demo/drawingarea.c
+++ b/demos/gtk-demo/drawingarea.c
@@ -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);