diff options
author | Benjamin Otte <otte@redhat.com> | 2010-06-28 14:44:12 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-29 16:06:38 +0200 |
commit | 3e96cfe8fcfeedabc09b2a8b3aa87007a3b5a2a0 (patch) | |
tree | a5b8a39ad674b77e2d1beeb234c0cdd48d218b20 /gdk/x11/gdkdnd-x11.c | |
parent | 52200eee01cc055adaefb678d6c6f04455d1a593 (diff) | |
download | gtk+-3e96cfe8fcfeedabc09b2a8b3aa87007a3b5a2a0.tar.gz |
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
Diffstat (limited to 'gdk/x11/gdkdnd-x11.c')
-rw-r--r-- | gdk/x11/gdkdnd-x11.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |