[gtk] textview: Remove handling_key_event flag
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] textview: Remove handling_key_event flag
- Date: Sat, 21 Apr 2018 17:33:37 +0000 (UTC)
commit 1a24a360bdc80520030482509e61fe192ae7ef34
Author: Timm Bäder <mail baedert org>
Date: Sat Apr 21 15:45:47 2018 +0200
textview: Remove handling_key_event flag
It's not used anymore.
gtk/gtktextview.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index b0d53652be..77055a9cbf 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -276,8 +276,6 @@ struct _GtkTextViewPrivate
guint cursor_handle_dragged : 1;
guint selection_handle_dragged : 1;
guint populate_all : 1;
-
- guint handling_key_event : 1;
};
struct _GtkTextPendingScroll
@@ -4967,8 +4965,6 @@ gtk_text_view_key_controller_key_pressed (GtkEventControllerKey *controller,
if (priv->layout == NULL || get_buffer (text_view) == NULL)
return FALSE;
- priv->handling_key_event = TRUE;
-
/* Make sure input method knows where it is */
flush_update_im_spot_location (text_view);
@@ -5019,8 +5015,6 @@ gtk_text_view_key_controller_key_pressed (GtkEventControllerKey *controller,
gtk_text_view_selection_bubble_popup_unset (text_view);
- priv->handling_key_event = FALSE;
-
return retval;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]