From 2ef871dfb77e9ecf9b269561c81cee8c2169d197 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 19 Oct 2016 12:26:48 +0300 Subject: GTK+3: fix build failure with marco 1.17 (which is GTK+3 only now) add a couple of #define's that previously were in marco's src/ui/preview-widget.h which is included here --- capplets/common/theme-thumbnail.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'capplets') diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c index aa0ce31e..775b460c 100644 --- a/capplets/common/theme-thumbnail.c +++ b/capplets/common/theme-thumbnail.c @@ -23,6 +23,11 @@ #define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,y) #endif +#if GTK_CHECK_VERSION (3, 0, 0) +#define GdkRegion cairo_region_t +#define gdk_region_destroy cairo_region_destroy +#endif + typedef struct { gboolean set; gint thumbnail_width; -- cgit v1.2.1