1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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.
This commit is contained in:
Simon Tatham 2015-08-31 13:41:16 +01:00
parent 620622b3e5
commit 4e243ae9a4

View File

@ -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