diff options
Diffstat (limited to 'gtk/spice-widget-priv.h')
-rw-r--r-- | gtk/spice-widget-priv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/spice-widget-priv.h b/gtk/spice-widget-priv.h index c4ba385..e90603a 100644 --- a/gtk/spice-widget-priv.h +++ b/gtk/spice-widget-priv.h @@ -109,7 +109,11 @@ struct spice_display { int spicex_image_create (SpiceDisplay *display); void spicex_image_destroy (SpiceDisplay *display); void spicex_image_invalidate (SpiceDisplay *display, gint *x, gint *y, gint *w, gint *h); -void spicex_expose_event (SpiceDisplay *display, GdkEventExpose *expose); +#if GTK_CHECK_VERSION (2, 91, 0) +void spicex_draw_event (SpiceDisplay *display, cairo_t *cr); +#else +void spicex_expose_event (SpiceDisplay *display, GdkEventExpose *ev); +#endif gboolean spicex_is_scaled (SpiceDisplay *display); G_END_DECLS |