diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index 28eee08e85..ef45df6a6c 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -217,7 +217,6 @@ gdk_surface_move gdk_surface_resize gdk_surface_move_resize gdk_surface_scroll -gdk_surface_move_region gdk_surface_has_native gdk_surface_raise gdk_surface_lower diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 84a4c86352..6e9239ffae 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -3984,44 +3984,6 @@ gdk_surface_scroll (GdkSurface *surface, gdk_surface_invalidate_rect_full (surface, NULL, TRUE); } -/** - * gdk_surface_move_region: - * @surface: a #GdkSurface - * @region: The #cairo_region_t to move - * @dx: Amount to move in the X direction - * @dy: Amount to move in the Y direction - * - * Move the part of @surface indicated by @region by @dy pixels in the Y - * direction and @dx pixels in the X direction. The portions of @region - * that not covered by the new position of @region are invalidated. - * - * Child surfaces are not moved. - */ -void -gdk_surface_move_region (GdkSurface *surface, - const cairo_region_t *region, - gint dx, - gint dy) -{ - cairo_region_t *expose_area; - - g_return_if_fail (GDK_IS_SURFACE (surface)); - g_return_if_fail (region != NULL); - - if (dx == 0 && dy == 0) - return; - - if (surface->destroyed) - return; - - expose_area = cairo_region_copy (region); - cairo_region_translate (expose_area, dx, dy); - cairo_region_union (expose_area, region); - - gdk_surface_invalidate_region_full (surface, expose_area, FALSE); - cairo_region_destroy (expose_area); -} - static void gdk_surface_set_cursor_internal (GdkSurface *surface, GdkDevice *device, diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 33d3591e65..88e5ea6bd7 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -517,11 +517,6 @@ GDK_AVAILABLE_IN_ALL void gdk_surface_scroll (GdkSurface *surface, gint dx, gint dy); -GDK_AVAILABLE_IN_ALL -void gdk_surface_move_region (GdkSurface *surface, - const cairo_region_t *region, - gint dx, - gint dy); /* * This allows for making shaped (partially transparent) surfaces