summaryrefslogtreecommitdiff
path: root/capplets/common
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-10-19 12:26:48 +0300
committermonsta <[email protected]>2016-10-19 12:26:48 +0300
commit2ef871dfb77e9ecf9b269561c81cee8c2169d197 (patch)
treedfed51b3f1177ec64ff46e23299ff2ba1c238523 /capplets/common
parent40530f8ddd9f58d8abe391cd6c7929c496c7d8d0 (diff)
downloadmate-control-center-2ef871dfb77e9ecf9b269561c81cee8c2169d197.tar.bz2
mate-control-center-2ef871dfb77e9ecf9b269561c81cee8c2169d197.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
Diffstat (limited to 'capplets/common')
-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;