From 3e96cfe8fcfeedabc09b2a8b3aa87007a3b5a2a0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 28 Jun 2010 14:44:12 +0200 Subject: Deprecate the GdkRegion API Includes fixing all callers to use the cairo region API instead. This is usually just replacing the function names, the only difference is gdk_region_get_rectangles() being replaced by cairo_region_num_rectangles() and cairo_region_get_rectangle() which required a bit more work. https://bugzilla.gnome.org/show_bug.cgi?id=613284 --- gdk/x11/gdkdnd-x11.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdk/x11/gdkdnd-x11.c') diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index 9a474b906a..7077d64acd 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -338,7 +338,7 @@ free_cache_child (GdkCacheChild *child, GdkDisplay *display) { if (child->shape) - gdk_region_destroy (child->shape); + cairo_region_destroy (child->shape); if (child->shape_selected && display) { @@ -397,7 +397,7 @@ gdk_window_cache_shape_filter (GdkXEvent *xev, child->shape_valid = FALSE; if (child->shape) { - gdk_region_destroy (child->shape); + cairo_region_destroy (child->shape); child->shape = NULL; } } @@ -639,8 +639,8 @@ is_pointer_within_shape (GdkDisplay *display, child->xid, ShapeInput); if (child->shape && input_shape) { - gdk_region_intersect (child->shape, input_shape); - gdk_region_destroy (input_shape); + cairo_region_intersect (child->shape, input_shape); + cairo_region_destroy (input_shape); } else if (input_shape) { @@ -652,7 +652,7 @@ is_pointer_within_shape (GdkDisplay *display, } return child->shape == NULL || - gdk_region_point_in (child->shape, x_pos, y_pos); + cairo_region_contains_point (child->shape, x_pos, y_pos); } static Window -- cgit v1.2.1