]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Avoid using gdk_cursor_new() in GTK 3.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:41:16 +0000 (13:41 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:41:16 +0000 (13:41 +0100)
It's deprecated in up-to-date versions, but fortunately, the
workaround is just to explicitly include the appropriate GdkDisplay.

unix/gtkcompat.h

index 6a8674c7fda3205c73fa48b3cf6f940ae3cbe23b..19086157e564d48519de737518a18318543a6045 100644 (file)
 
 #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