[gtk+/wip/carlosg/event-delivery: 215/261] gtktextview: Drop GdkWindow checks on events



commit 573f03f854f1960f9f17ff871510e12dac8d7c50
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 31 18:06:19 2017 +0200

    gtktextview: Drop GdkWindow checks on events
    
    These are now wrong and prevent the code from running correctly.

 gtk/gtktextview.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c4565e3..e04007e 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5344,9 +5344,6 @@ gtk_text_view_event (GtkWidget *widget, GdkEvent *event)
       get_buffer (text_view) == NULL)
     return FALSE;
 
-  if (event->any.window != priv->text_window->bin_window)
-    return FALSE;
-
   if (get_event_coordinates (event, &x, &y))
     {
       GtkTextIter iter;
@@ -5552,13 +5549,6 @@ gtk_text_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
 
   gtk_widget_grab_focus (GTK_WIDGET (text_view));
 
-  if (gdk_event_get_window (event) != priv->text_window->bin_window)
-    {
-      /* Remove selection if any. */
-      gtk_text_view_unselect (text_view);
-      return;
-    }
-
   gtk_gesture_set_sequence_state (GTK_GESTURE (gesture), sequence,
                                   GTK_EVENT_SEQUENCE_CLAIMED);
   gtk_text_view_reset_blink_time (text_view);


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