gtkcolorplane: Drop usage of gtk_gesture_set_window()

It's now meaningless since the widget will receive the event despite
the input window.
This commit is contained in:
Carlos Garnacho 2017-03-31 18:11:52 +02:00
parent 99e200aa98
commit f5e02f3a2a

View File

@ -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;