From 74ff61a937017d94fd1e103bb4b133b803d5c6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 26 Dec 2020 09:44:36 +0100 Subject: [PATCH] gesturelongpress: Remove a useless cast We already get a GtkGestureLongPress here. --- gtk/gtkgesturelongpress.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c index c7dc7cbf10..7a27a307fc 100644 --- a/gtk/gtkgesturelongpress.c +++ b/gtk/gtkgesturelongpress.c @@ -75,9 +75,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureLongPress, gtk_gesture_long_press, GTK_TYP static void gtk_gesture_long_press_init (GtkGestureLongPress *gesture) { - GtkGestureLongPressPrivate *priv; - - priv = gtk_gesture_long_press_get_instance_private (GTK_GESTURE_LONG_PRESS (gesture)); + GtkGestureLongPressPrivate *priv = gtk_gesture_long_press_get_instance_private (gesture); priv->delay_factor = 1.0; }