summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturezoom.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-16 11:09:02 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-21 00:51:02 -0500
commit31bf9da63acaa2bfb9d2163c80289caa618a06ca (patch)
tree539ce0bc412aa52a18116b2c53ce6faae7e36d05 /gtk/gtkgesturezoom.c
parent1026bfb1ac6cfb5b47012b0a7f43ab85dabfbd91 (diff)
downloadgtk+-31bf9da63acaa2bfb9d2163c80289caa618a06ca.tar.gz
Strip const from GdkEvent
Events are refcounted structs, and we generally don't pass these as const.
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r--gtk/gtkgesturezoom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index 208daf74b2..402d313912 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -76,7 +76,7 @@ static gboolean
_gtk_gesture_zoom_get_distance (GtkGestureZoom *zoom,
gdouble *distance)
{
- const GdkEvent *last_event;
+ GdkEvent *last_event;
gdouble x1, y1, x2, y2;
GtkGesture *gesture;
GList *sequences = NULL;
@@ -149,7 +149,7 @@ _gtk_gesture_zoom_check_emit (GtkGestureZoom *gesture)
static gboolean
gtk_gesture_zoom_filter_event (GtkEventController *controller,
- const GdkEvent *event)
+ GdkEvent *event)
{
/* Let 2-finger touchpad pinch events go through */
if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_PINCH)