diff options
author | Laszlo Boros <[email protected]> | 2013-10-26 14:27:58 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-26 14:27:58 +0200 |
commit | 35d540dd3c9269ec39bf3bc10a98b9714963291b (patch) | |
tree | ae76b286839a6d3a6ebe309bdb7884bd35a3698d /src/ui/preview-widget.h | |
parent | 46ba8ca5fc9665c1a4758e56fda6761ac993c62e (diff) | |
download | marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.bz2 marco-35d540dd3c9269ec39bf3bc10a98b9714963291b.tar.xz |
Starting to add GTK3 support
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 |