summaryrefslogtreecommitdiff
path: root/src/ui/preview-widget.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-10-15 15:39:12 +0300
committermonsta <[email protected]>2016-10-15 15:39:12 +0300
commit40e26ed6d0e9ef84522ad0723f630bd7d796beec (patch)
tree67374984e9b7d2c60525976a008889775f7de4f3 /src/ui/preview-widget.h
parent3b69fd200912e27ce64caf3bf5d4338aab73177b (diff)
downloadmarco-40e26ed6d0e9ef84522ad0723f630bd7d796beec.tar.bz2
marco-40e26ed6d0e9ef84522ad0723f630bd7d796beec.tar.xz
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'src/ui/preview-widget.h')
-rw-r--r--src/ui/preview-widget.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ui/preview-widget.h b/src/ui/preview-widget.h
index bb5d2893..1bbd97e7 100644
--- a/src/ui/preview-widget.h
+++ b/src/ui/preview-widget.h
@@ -23,15 +23,7 @@
#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
+#include <cairo/cairo.h>
#ifndef META_PREVIEW_WIDGET_H
#define META_PREVIEW_WIDGET_H
@@ -86,7 +78,7 @@ void meta_preview_set_frame_flags (MetaPreview *preview,
void meta_preview_set_button_layout (MetaPreview *preview,
const MetaButtonLayout *button_layout);
-GdkRegion * meta_preview_get_clip_region (MetaPreview *preview,
+cairo_region_t* meta_preview_get_clip_region (MetaPreview *preview,
gint new_window_width,
gint new_window_height);