[gtk+/wip/carlosg/event-delivery: 25/72] gtkcolorplane: Drop usage of gtk_gesture_set_window()



commit 255c6a879ca040cc10f57176b8519417a201c4d0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 31 18:11:52 2017 +0200

    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 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcolorplane.c b/gtk/gtkcolorplane.c
index 8b9c1f9..e3a66d7 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]