Add a private getter for the textview key controller

This will be used in tests.
This commit is contained in:
Matthias Clasen 2021-08-02 20:16:23 -04:00
parent c63774967f
commit 253e25a73c
2 changed files with 8 additions and 0 deletions

View File

@ -10016,3 +10016,9 @@ gtk_text_view_get_rtl_context (GtkTextView *text_view)
return text_view->priv->layout->rtl_context;
}
GtkEventController *
gtk_text_view_get_key_controller (GtkTextView *text_view)
{
return text_view->priv->key_controller;
}

View File

@ -30,6 +30,8 @@ GtkCssNode * gtk_text_view_get_selection_node (GtkTextView *text_view)
GtkTextAttributes * gtk_text_view_get_default_attributes (GtkTextView *text_view);
GtkEventController *gtk_text_view_get_key_controller (GtkTextView *text_view);
G_END_DECLS