summaryrefslogtreecommitdiff
path: root/gtk/gtkgesture.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2018-03-21 11:49:14 +0100
committerAlexander Larsson <alexl@redhat.com>2018-03-21 11:49:14 +0100
commit39851fbdbf08b3479192ceafaf788fa3bfbe8fd9 (patch)
treecefaafea3f3e46cb8b9b0a7610642308f44d648b /gtk/gtkgesture.c
parent945379d623b3382fb764de8c9cc93821de955485 (diff)
downloadgtk+-39851fbdbf08b3479192ceafaf788fa3bfbe8fd9.tar.gz
Continue renaming window to surface
This renames a lot of arguments, local variables and functions.
Diffstat (limited to 'gtk/gtkgesture.c')
-rw-r--r--gtk/gtkgesture.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 48e36aca71..a90fd70cb9 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -599,21 +599,21 @@ _gtk_gesture_cancel_all (GtkGesture *gesture)
}
static gboolean
-gesture_within_window (GtkGesture *gesture,
- GdkSurface *parent)
+gesture_within_surface (GtkGesture *gesture,
+ GdkSurface *parent)
{
- GdkSurface *window;
+ GdkSurface *surface;
GtkWidget *widget;
widget = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture));
- window = gtk_widget_get_surface (widget);
+ surface = gtk_widget_get_surface (widget);
- while (window)
+ while (surface)
{
- if (window == parent)
+ if (surface == parent)
return TRUE;
- window = gdk_surface_get_parent (window);
+ surface = gdk_surface_get_parent (surface);
}
return FALSE;
@@ -743,7 +743,7 @@ gtk_gesture_handle_event (GtkEventController *controller,
GdkSurface *surface = NULL;
gdk_event_get_grab_surface (event, &surface);
- if (!surface || !gesture_within_window (gesture, surface))
+ if (!surface || !gesture_within_surface (gesture, surface))
_gtk_gesture_cancel_all (gesture);
return FALSE;