From f5e02f3a2a3d299cd213f4bc3c40fe56820f3db1 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 31 Mar 2017 18:11:52 +0200 Subject: [PATCH] gtkcolorplane: Drop usage of gtk_gesture_set_window() It's now meaningless since the widget will receive the event despite the input window. --- gtk/gtkcolorplane.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c index 8b9c1f92a5..e3a66d79d2 100644 --- a/gtk/gtkcolorplane.c +++ b/gtk/gtkcolorplane.c @@ -216,9 +216,6 @@ plane_realize (GtkWidget *widget) &allocation); gtk_widget_register_window (widget, priv->input_window); - gtk_gesture_set_window (priv->drag_gesture, priv->input_window); - gtk_gesture_set_window (priv->long_press_gesture, priv->input_window); - create_surface (GTK_COLOR_PLANE (widget)); } @@ -230,9 +227,6 @@ plane_unrealize (GtkWidget *widget) g_clear_pointer (&priv->surface, cairo_surface_destroy); - gtk_gesture_set_window (priv->drag_gesture, NULL); - gtk_gesture_set_window (priv->long_press_gesture, NULL); - gtk_widget_unregister_window (widget, priv->input_window); gdk_window_destroy (priv->input_window); priv->input_window = NULL;