summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.h
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-04-17 20:12:02 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-05-03 12:57:29 +0300
commit225f2cf768c745fe13c9d7e90d340fd2a15d6c5b (patch)
treec7e8ea817760c3dd90b01d29c06561a483c658a9 /eel/eel-canvas.h
parent3cc3e7575315f99665abd96e988762b06fec760b (diff)
downloadnautilus-225f2cf768c745fe13c9d7e90d340fd2a15d6c5b.tar.gz
eel-canvas: use GdkSeat operations
Some GdkDisplay operations have been deprecated in GDK 3.20. This commit replaces the deprecated code in eel_canvas_item_grab() and eel_canvas_item_ungrab() functions with new GdkSeat operations. https://bugzilla.gnome.org/show_bug.cgi?id=762235
Diffstat (limited to 'eel/eel-canvas.h')
-rw-r--r--eel/eel-canvas.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/eel/eel-canvas.h b/eel/eel-canvas.h
index adff7f773..5758c1bde 100644
--- a/eel/eel-canvas.h
+++ b/eel/eel-canvas.h
@@ -239,20 +239,19 @@ void eel_canvas_item_show (EelCanvasItem *item);
*/
void eel_canvas_item_hide (EelCanvasItem *item);
-/* Grab the mouse for the specified item. Only the events in event_mask will be
- * reported. If cursor is non-NULL, it will be used during the duration of the
- * grab. Time is a proper X event time parameter. Returns the same values as
- * XGrabPointer().
+/* Grab the seat for the specified item. Only the events in event_mask will be
+ * reported. If cursor is non-NULL, it will be used during the duration of the
+ * grab. event is the event, triggering the grab. Returns the same values as gdk_seat_grab().
*/
GdkGrabStatus eel_canvas_item_grab (EelCanvasItem *item,
GdkEventMask event_mask,
GdkCursor *cursor,
- guint32 etime);
+ const GdkEvent* event);
-/* Ungrabs the mouse -- the specified item must be the same that was passed to
- * eel_canvas_item_grab(). Time is a proper X event time parameter.
+/* Ungrabs the seat -- the specified item must be the same that was passed to
+ * eel_canvas_item_grab().
*/
-void eel_canvas_item_ungrab (EelCanvasItem *item, guint32 etime);
+void eel_canvas_item_ungrab (EelCanvasItem *item);
/* These functions convert from a coordinate system to another. "w" is world
* coordinates and "i" is item coordinates.