[gtk/wip/matthiasc/popup4: 54/94] gdk: Drop pass-through surfaces
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 54/94] gdk: Drop pass-through surfaces
- Date: Sat, 27 Apr 2019 04:45:56 +0000 (UTC)
commit 8edb2f3a448dcca79dbfe9de823780d1137a24b1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 21 16:33:22 2019 +0000
gdk: Drop pass-through surfaces
With client-side windows gone, this property
is no longer used at all, and has been replaced
by a similar concept on the widget level.
Drop it.
docs/reference/gdk/gdk4-sections.txt | 2 --
gdk/gdkinternals.h | 1 -
gdk/gdksurface.c | 50 ------------------------------------
gdk/gdksurface.h | 7 -----
4 files changed, 60 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 58581769dc..cd804617b8 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -206,8 +206,6 @@ gdk_surface_set_fullscreen_mode
gdk_surface_set_keep_above
gdk_surface_set_keep_below
gdk_surface_set_opacity
-gdk_surface_set_pass_through
-gdk_surface_get_pass_through
gdk_surface_move
gdk_surface_resize
gdk_surface_move_resize
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 6e334224ab..e85491a099 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -150,7 +150,6 @@ struct _GdkSurface
guint8 alpha;
guint8 fullscreen_mode;
- guint pass_through : 1;
guint modal_hint : 1;
guint destroyed : 2;
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 9c02a610bd..efd1c394e5 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2287,56 +2287,6 @@ gdk_surface_set_child_input_shapes (GdkSurface *surface)
do_child_input_shapes (surface, FALSE);
}
-/**
- * gdk_surface_set_pass_through:
- * @surface: a #GdkSurface
- * @pass_through: a boolean
- *
- * Sets whether input to the surface is passed through to the surface
- * below.
- *
- * The default value of this is %FALSE, which means that pointer
- * events that happen inside the surface are send first to the surface,
- * but if the event is not selected by the event mask then the event
- * is sent to the parent surface, and so on up the hierarchy.
- *
- * If @pass_through is %TRUE then such pointer events happen as if the
- * surface wasn't there at all, and thus will be sent first to any
- * surfaces below @surface. This is useful if the surface is used in a
- * transparent fashion. In the terminology of the web this would be called
- * "pointer-events: none".
- *
- * Note that a surface with @pass_through %TRUE can still have a subsurface
- * without pass through, so you can get events on a subset of a surface. And in
- * that cases you would get the in-between related events such as the pointer
- * enter/leave events on its way to the destination surface.
- **/
-void
-gdk_surface_set_pass_through (GdkSurface *surface,
- gboolean pass_through)
-{
- g_return_if_fail (GDK_IS_SURFACE (surface));
-
- surface->pass_through = !!pass_through;
-}
-
-/**
- * gdk_surface_get_pass_through:
- * @surface: a #GdkSurface
- *
- * Returns whether input to the surface is passed through to the surface
- * below.
- *
- * See gdk_surface_set_pass_through() for details
- **/
-gboolean
-gdk_surface_get_pass_through (GdkSurface *surface)
-{
- g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
-
- return surface->pass_through;
-}
-
/**
* gdk_surface_merge_child_input_shapes:
* @surface: a #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 155418f4ff..e1e0c53d0d 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -511,13 +511,6 @@ void gdk_surface_set_child_input_shapes (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_surface_merge_child_input_shapes (GdkSurface *surface);
-
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_pass_through (GdkSurface *surface,
- gboolean pass_through);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_surface_get_pass_through (GdkSurface *surface);
-
/*
* Check if a surface has been shown, and whether all its
* parents up to a toplevel have been shown, respectively.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]