From d52ad1054d509bbe02809b7f5a9471e95727ef08 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 29 Nov 2012 16:33:41 -0500 Subject: Add a GdkDevice parameter to gnome_canvas_item_grab(). GnomeCanvas will stash the GdkDevice and reuse it in the subsequent gnome_canvas_item_ungrab() call. --- libgnomecanvas/gnome-canvas.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libgnomecanvas/gnome-canvas.h') diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h index 603ebfebc3..2c2befbf2f 100644 --- a/libgnomecanvas/gnome-canvas.h +++ b/libgnomecanvas/gnome-canvas.h @@ -245,7 +245,8 @@ void gnome_canvas_item_hide (GnomeCanvasItem *item); * XGrabPointer(). */ gint gnome_canvas_item_grab (GnomeCanvasItem *item, guint event_mask, - GdkCursor *cursor, guint32 etime); + GdkCursor *cursor, GdkDevice *device, + guint32 etime); /* Ungrabs the mouse -- the specified item must be the same that was passed to * gnome_canvas_item_grab(). Time is a proper X event time parameter. @@ -362,6 +363,9 @@ struct _GnomeCanvas { /* Item that holds a pointer grab, or NULL if none */ GnomeCanvasItem *grabbed_item; + /* The grabbed device for grabbed_item. */ + GdkDevice *grabbed_device; + /* If non-NULL, the currently focused item */ GnomeCanvasItem *focused_item; -- cgit