From 4e243ae9a4a08a3697b4803357bd12375f801998 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 31 Aug 2015 13:41:16 +0100 Subject: [PATCH] Avoid using gdk_cursor_new() in GTK 3. It's deprecated in up-to-date versions, but fortunately, the workaround is just to explicitly include the appropriate GdkDisplay. --- unix/gtkcompat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unix/gtkcompat.h b/unix/gtkcompat.h index 6a8674c7..19086157 100644 --- a/unix/gtkcompat.h +++ b/unix/gtkcompat.h @@ -180,4 +180,7 @@ #define gdk_get_display() gdk_display_get_name(gdk_display_get_default()) +#define gdk_cursor_new(cur) \ + gdk_cursor_new_for_display(gdk_display_get_default(), cur) + #endif