summaryrefslogtreecommitdiff
path: root/capplets/display/scrollarea.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-02 00:45:36 +0300
committermonsta <[email protected]>2016-12-02 00:50:14 +0300
commit0c27d18ab5efb721a2f02549767016c81fc6ce2c (patch)
tree76b7b89cface072e011a3757a833e9090bab44f2 /capplets/display/scrollarea.h
parent1aa83d45ebf9599c6d4d3f47211c3961282e98f0 (diff)
downloadmate-control-center-0c27d18ab5efb721a2f02549767016c81fc6ce2c.tar.bz2
mate-control-center-0c27d18ab5efb721a2f02549767016c81fc6ce2c.tar.xz
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmatekbd, libmate-desktop, marco, m-s-d >= 1.17
Diffstat (limited to 'capplets/display/scrollarea.h')
-rw-r--r--capplets/display/scrollarea.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/capplets/display/scrollarea.h b/capplets/display/scrollarea.h
index 9e0caa67..9c39cc60 100644
--- a/capplets/display/scrollarea.h
+++ b/capplets/display/scrollarea.h
@@ -18,21 +18,6 @@
#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))
@@ -85,7 +70,7 @@ struct FooScrollAreaClass
void (*paint) (FooScrollArea *scroll_area,
cairo_t *cr,
GdkRectangle *extents,
- GdkRegion *region);
+ cairo_region_t *region);
};
GType foo_scroll_area_get_type (void);
@@ -120,7 +105,7 @@ void foo_scroll_area_add_input_from_fill (FooScrollArea *scroll_area,
FooScrollAreaEventFunc func,
gpointer data);
void foo_scroll_area_invalidate_region (FooScrollArea *area,
- GdkRegion *region);
+ cairo_region_t *region);
void foo_scroll_area_invalidate (FooScrollArea *scroll_area);
void foo_scroll_area_invalidate_rect (FooScrollArea *scroll_area,
int x,