[gtk+] text view: Use GdkEvent API



commit 96daf93821e603bee658634267e7f8403eb8af1f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 26 12:22:49 2017 -0400

    text view: Use GdkEvent API

 gtk/gtktextview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 505616e..0dc2bd8 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5442,7 +5442,7 @@ gtk_text_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
   gtk_text_view_reset_blink_time (text_view);
   gtk_text_view_pend_cursor_blink (text_view);
 
-  if (!event->send_event && priv->text_handle)
+  if (!gdk_event_is_sent ((GdkEvent *) event) && priv->text_handle)
     _gtk_text_handle_set_mode (priv->text_handle,
                                GTK_TEXT_HANDLE_MODE_NONE);
 


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