From acadd35e4cab5beb155496558597ae5c755f1225 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Mon, 18 Jan 2016 15:30:10 +0100 Subject: GTK3 canvas: don't use deprecated GDK grab API taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-2&id=2ff006d --- eel/eel-canvas.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eel/eel-canvas.h') diff --git a/eel/eel-canvas.h b/eel/eel-canvas.h index 6aa227e0..f641087a 100644 --- a/eel/eel-canvas.h +++ b/eel/eel-canvas.h @@ -255,8 +255,15 @@ extern "C" { * grab. Time is a proper X event time parameter. Returns the same values as * XGrabPointer(). */ +#if GTK_CHECK_VERSION (3, 0, 0) + GdkGrabStatus eel_canvas_item_grab (EelCanvasItem *item, + GdkEventMask event_mask, + GdkCursor *cursor, + guint32 etime); +#else int eel_canvas_item_grab (EelCanvasItem *item, unsigned int event_mask, GdkCursor *cursor, guint32 etime); +#endif /* 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. -- cgit v1.2.1