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



commit 2b6bec618a7320b0d2ccfe2ae1f1eb0326222b4e
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]