diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-22 14:24:39 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:13 +0000 |
commit | 989792cbc037f48a0200ce45bfad88c61c1ba021 (patch) | |
tree | 38a6a81781514a0e26cae1d3a4b26f022d9c5a5c /gtk/gtkgesture.c | |
parent | 52c3507ae1d003f6a50ea176ae8df62aa94651bd (diff) | |
download | gtk+-989792cbc037f48a0200ce45bfad88c61c1ba021.tar.gz |
Drop child surfaces
Drop gdk_surface_child_new and the child surface type,
since we no longer use them. Deprecate surface apis
that only make sense with child surfaces.
Diffstat (limited to 'gtk/gtkgesture.c')
-rw-r--r-- | gtk/gtkgesture.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c index e4e0791d59..6296ba3444 100644 --- a/gtk/gtkgesture.c +++ b/gtk/gtkgesture.c @@ -600,23 +600,12 @@ _gtk_gesture_cancel_all (GtkGesture *gesture) static gboolean gesture_within_surface (GtkGesture *gesture, - GdkSurface *parent) + GdkSurface *surface) { - GdkSurface *surface; GtkWidget *widget; widget = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)); - surface = gtk_widget_get_surface (widget); - - while (surface) - { - if (surface == parent) - return TRUE; - - surface = gdk_surface_get_parent (surface); - } - - return FALSE; + return surface == gtk_widget_get_surface (widget); } static gboolean |