summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-06-06 15:57:22 +0200
committerCarlos Garnacho <carlosg@gnome.org>2018-06-21 12:50:57 +0200
commitaaf1e4995cf2029972c1d71425bcf4e9b27d46da (patch)
tree29545c5a4e59c24f8075c32ecb7ebc02c2cf74d0 /gtk/gtkentry.c
parente08e15ba51c660c53e5658fce9a5d117668af4b4 (diff)
downloadgtk+-aaf1e4995cf2029972c1d71425bcf4e9b27d46da.tar.gz
gtkfilechooserentry: Use GtkEntry key controller for focus-out handling
Expose the GtkEntry key controller in private API, so we don't have to create yet another one just to handle focus-out.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index d9863310ff..5f64a75f14 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9580,3 +9580,11 @@ set_enable_emoji_completion (GtkEntry *entry,
g_object_notify_by_pspec (G_OBJECT (entry), entry_props[PROP_ENABLE_EMOJI_COMPLETION]);
}
+
+GtkEventController *
+gtk_entry_get_key_controller (GtkEntry *entry)
+{
+ GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
+
+ return priv->key_controller;
+}