surface: Remove gdk_surface_move_region()
authorBenjamin Otte <otte@redhat.com>
Tue, 20 Mar 2018 22:04:36 +0000 (23:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Mar 2018 23:43:28 +0000 (00:43 +0100)
It's just a cute version of gdk_surface_invalidate_region()
these days and people can call that function instead.

docs/reference/gdk/gdk4-sections.txt
gdk/gdksurface.c
gdk/gdksurface.h

index 28eee08e85e61178e30f1e13e74210074b605cf2..ef45df6a6c7f6cf8853dfc2b5a102ab7b9f490d7 100644 (file)
@@ -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
index 84a4c86352d7a5a2810d742af1c4ecb6d7434746..6e9239ffae0bf9df00c7aba5d08cf2cc694ec294 100644 (file)
@@ -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,
index 33d3591e65bec31f30a78b3a4f0547bd17a4a875..88e5ea6bd7231a053a8bf3d53572497904a96a45 100644 (file)
@@ -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