summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-10-19 12:26:48 +0300
committermonsta <[email protected]>2017-01-25 14:26:41 +0300
commitffb6856d8a192951e83de00ea24b288a3c003561 (patch)
treedfed51b3f1177ec64ff46e23299ff2ba1c238523
parent40530f8ddd9f58d8abe391cd6c7929c496c7d8d0 (diff)
downloadmate-control-center-ffb6856d8a192951e83de00ea24b288a3c003561.tar.bz2
mate-control-center-ffb6856d8a192951e83de00ea24b288a3c003561.tar.xz
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
-rw-r--r--capplets/common/theme-thumbnail.c5
1 files changed, 5 insertions, 0 deletions
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;