[gtk+/wip/carlosg/event-delivery: 17/24] gtktextview: Drop GdkWindow checks on events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-delivery: 17/24] gtktextview: Drop GdkWindow checks on events
- Date: Fri, 31 Mar 2017 17:35:16 +0000 (UTC)
commit ba4b04e1786ac244e4594bfea5b69dbc78bb6897
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 7c8a226..e968d80 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]