forked from AuroraMiddleware/gtk
textview: Remove handling_key_event flag
It's not used anymore.
This commit is contained in:
parent
4f3c7cd48a
commit
1a24a360bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user