1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 21:12:47 -05:00

Handle GTK 3.22's deprecation of gdk_cairo_create().

Now the whole code base compiles and links successfully against 3.22.
This commit is contained in:
Simon Tatham
2017-02-27 19:58:39 +00:00
parent 7a0a404eb8
commit 8ce2372348
2 changed files with 23 additions and 0 deletions

View File

@ -124,6 +124,10 @@ typedef struct unifont_drawctx {
GtkWidget *widget;
cairo_t *cr;
cairo_matrix_t origmatrix;
#if GTK_CHECK_VERSION(3,22,0)
GdkWindow *gdkwin;
GdkDrawingContext *drawctx;
#endif
} cairo;
#endif
} u;