[gtk/surround-test: 2/4] Add a private getter for the textview key controller




commit 253e25a73c8168e862dc447ad29185944cda9cca
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 2 20:16:23 2021 -0400

    Add a private getter for the textview key controller
    
    This will be used in tests.

 gtk/gtktextview.c        | 6 ++++++
 gtk/gtktextviewprivate.h | 2 ++
 2 files changed, 8 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 3f5836f0aa..6c04a0e585 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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;
+}
diff --git a/gtk/gtktextviewprivate.h b/gtk/gtktextviewprivate.h
index 1f23cc45c9..13d9af255e 100644
--- a/gtk/gtktextviewprivate.h
+++ b/gtk/gtktextviewprivate.h
@@ -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
 


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