diff options
Diffstat (limited to 'src/ui/preview-widget.h')
-rw-r--r-- | src/ui/preview-widget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/preview-widget.h b/src/ui/preview-widget.h index e11a0b81..c19da7cc 100644 --- a/src/ui/preview-widget.h +++ b/src/ui/preview-widget.h @@ -24,6 +24,15 @@ #include "theme.h" #include <gtk/gtk.h> +#if GTK_CHECK_VERSION(3, 0, 0) + #include <cairo/cairo.h> + #define GdkRegion cairo_region_t + #define gdk_region_new cairo_region_create + #define gdk_region_subtract cairo_region_subtract + #define gdk_region_destroy cairo_region_destroy + #define gdk_region_union_with_rect cairo_region_union_rectangle +#endif + #ifndef META_PREVIEW_WIDGET_H #define META_PREVIEW_WIDGET_H |