From 2cede1e89aefbb8df3ae86a85e7770cfc176aab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 9 May 2020 17:58:01 +0100 Subject: [PATCH] GdkDragCancelReason wasn't exposed before gtk 3.20.0 Change-Id: I63deca16ab938e340c03450e2f75054def94569f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93869 Reviewed-by: Justin Luth Tested-by: Jenkins --- vcl/inc/unx/gtk/gtkframe.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx index e8a76758a959..3d4c803ff5be 100644 --- a/vcl/inc/unx/gtk/gtkframe.hxx +++ b/vcl/inc/unx/gtk/gtkframe.hxx @@ -532,6 +532,15 @@ AtkObject* ooo_fixed_get_accessible(GtkWidget *obj); } // extern "C" +#if !GTK_CHECK_VERSION(3, 20, 0) +enum GdkDragCancelReason +{ + GDK_DRAG_CANCEL_NO_TARGET, + GDK_DRAG_CANCEL_USER_CANCELLED, + GDK_DRAG_CANCEL_ERROR +}; +#endif + #if !GTK_CHECK_VERSION(3, 22, 0) enum GdkAnchorHints {