summaryrefslogtreecommitdiff
path: root/capplets/display/scrollarea.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-24 16:18:01 +0100
committerStefano Karapetsas <[email protected]>2014-01-24 16:18:01 +0100
commitc0d97d196ab43b214648dde0af05bd1b40033fce (patch)
treebe6641e90cc43858d613ba3f14ed6aa4397d531c /capplets/display/scrollarea.h
parent68341c156377131681ef80af1c9201f212bbd96c (diff)
downloadmate-control-center-c0d97d196ab43b214648dde0af05bd1b40033fce.tar.bz2
mate-control-center-c0d97d196ab43b214648dde0af05bd1b40033fce.tar.xz
display: Add GTK3 support
Diffstat (limited to 'capplets/display/scrollarea.h')
-rw-r--r--capplets/display/scrollarea.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/capplets/display/scrollarea.h b/capplets/display/scrollarea.h
index 93ff00d2..9e0caa67 100644
--- a/capplets/display/scrollarea.h
+++ b/capplets/display/scrollarea.h
@@ -18,6 +18,21 @@
#include <cairo.h>
#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define GdkRegion cairo_region_t
+#define gdk_region_new cairo_region_create
+#define gdk_region_destroy cairo_region_destroy
+#define gdk_region_rectangle cairo_region_create_rectangle
+#define gdk_region_subtract cairo_region_subtract
+#define gdk_region_intersect cairo_region_intersect
+#define gdk_region_empty cairo_region_is_empty
+#define gdk_region_copy cairo_region_copy
+#define gdk_region_get_clipbox cairo_region_get_extents
+#define gdk_region_offset cairo_region_translate
+#define gdk_region_point_in cairo_region_contains_point
+#define gdk_region_union cairo_region_union
+#endif
+
#define FOO_TYPE_SCROLL_AREA (foo_scroll_area_get_type ())
#define FOO_SCROLL_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOO_TYPE_SCROLL_AREA, FooScrollArea))
#define FOO_SCROLL_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOO_TYPE_SCROLL_AREA, FooScrollAreaClass))