[gtk/wip/matthiasc/popup5: 94/128] surface: Remove gdk_surface_set/merge_child_input_shapes()



commit 8cd1bb58de2d76e721adced2a7071337de5e5815
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Apr 23 16:29:48 2019 +0200

    surface: Remove gdk_surface_set/merge_child_input_shapes()
    
    These are useless now that we don't have child surfaces

 docs/reference/gdk/gdk4-sections.txt |  2 --
 gdk/gdksurface.c                     | 62 ------------------------------------
 gdk/gdksurface.h                     |  4 ---
 3 files changed, 68 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 6338ab03cc..e7ff165ecc 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -241,8 +241,6 @@ gdk_surface_get_accept_focus
 gdk_surface_set_focus_on_map
 gdk_surface_get_focus_on_map
 gdk_surface_input_shape_combine_region
-gdk_surface_set_child_input_shapes
-gdk_surface_merge_child_input_shapes
 gdk_surface_set_title
 GDK_PARENT_RELATIVE
 gdk_surface_set_cursor
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 7d11af7a2b..dab874d209 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2439,68 +2439,6 @@ gdk_surface_input_shape_combine_region (GdkSurface       *surface,
   GDK_SURFACE_GET_CLASS (surface)->input_shape_combine_region (surface, surface->input_shape, 0, 0);
 }
 
-static void
-do_child_input_shapes (GdkSurface *surface,
-                       gboolean merge)
-{
-  GdkRectangle r;
-  cairo_region_t *region;
-
-  r.x = 0;
-  r.y = 0;
-  r.width = surface->width;
-  r.height = surface->height;
-
-  region = cairo_region_create_rectangle (&r);
-
-  if (merge && surface->input_shape)
-    cairo_region_subtract (region, surface->input_shape);
-
-  cairo_region_xor_rectangle (region, &r);
-
-  gdk_surface_input_shape_combine_region (surface, region, 0, 0);
-}
-
-
-/**
- * gdk_surface_set_child_input_shapes:
- * @surface: a #GdkSurface
- *
- * Sets the input shape mask of @surface to the union of input shape masks
- * for all children of @surface, ignoring the input shape mask of @surface
- * itself. Contrast with gdk_surface_merge_child_input_shapes() which includes
- * the input shape mask of @surface in the masks to be merged.
- **/
-void
-gdk_surface_set_child_input_shapes (GdkSurface *surface)
-{
-  g_return_if_fail (GDK_IS_SURFACE (surface));
-
-  do_child_input_shapes (surface, FALSE);
-}
-
-/**
- * gdk_surface_merge_child_input_shapes:
- * @surface: a #GdkSurface
- *
- * Merges the input shape masks for any child surfaces into the
- * input shape mask for @surface. i.e. the union of all input masks
- * for @surface and its children will become the new input mask
- * for @surface. See gdk_surface_input_shape_combine_region().
- *
- * This function is distinct from gdk_surface_set_child_input_shapes()
- * because it includes @surface’s input shape mask in the set of
- * shapes to be merged.
- **/
-void
-gdk_surface_merge_child_input_shapes (GdkSurface *surface)
-{
-  g_return_if_fail (GDK_IS_SURFACE (surface));
-
-  do_child_input_shapes (surface, TRUE);
-}
-
-
 /**
  * gdk_surface_get_modal_hint:
  * @surface: A toplevel #GdkSurface.
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 956870d040..ac6068364c 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -497,10 +497,6 @@ void gdk_surface_input_shape_combine_region (GdkSurface       *surface,
                                              const cairo_region_t *shape_region,
                                              gint             offset_x,
                                              gint             offset_y);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_child_input_shapes     (GdkSurface       *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_merge_child_input_shapes   (GdkSurface       *surface);
 
 /*
  * Check if a surface has been shown, and whether all its


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]