diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-18 15:30:10 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-18 15:30:10 +0100 |
commit | acadd35e4cab5beb155496558597ae5c755f1225 (patch) | |
tree | a8d935240ca2951c98971edcba9f8a525bdc77e1 /eel/eel-canvas.h | |
parent | 57c2e8090698e8d05beec0c53e3a116fd8b88862 (diff) | |
download | caja-acadd35e4cab5beb155496558597ae5c755f1225.tar.bz2 caja-acadd35e4cab5beb155496558597ae5c755f1225.tar.xz |
GTK3 canvas: don't use deprecated GDK grab API
taken from:
https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-2&id=2ff006d
Diffstat (limited to 'eel/eel-canvas.h')
-rw-r--r-- | eel/eel-canvas.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. |