summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-20 10:29:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-20 10:29:26 -0500
commitb303c20570cc491bfd650b1780ed166dea18920f (patch)
treec8a28dd593eb5628e7caf1592f88c846be5ef3fa
parent02e856f62e9eee7796bdff9ba8d8a9bda31c60fc (diff)
downloadgtk+-b303c20570cc491bfd650b1780ed166dea18920f.tar.gz
search entry: Add private api to get the text widget
We need this to do some custom setup in the Emoji chooser.
-rw-r--r--gtk/gtksearchentry.c8
-rw-r--r--gtk/gtksearchentryprivate.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index a73e32963d..e9c56c4e04 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -701,3 +701,11 @@ gtk_search_entry_get_key_controller (GtkSearchEntry *entry)
return gtk_text_get_key_controller (GTK_TEXT (priv->entry));
}
+
+GtkText *
+gtk_search_entry_get_text_widget (GtkSearchEntry *entry)
+{
+ GtkSearchEntryPrivate *priv = gtk_search_entry_get_instance_private (entry);
+
+ return priv->entry;
+}
diff --git a/gtk/gtksearchentryprivate.h b/gtk/gtksearchentryprivate.h
index 46b5d9f5b9..957b34cd07 100644
--- a/gtk/gtksearchentryprivate.h
+++ b/gtk/gtksearchentryprivate.h
@@ -26,12 +26,14 @@
#define __GTK_SEARCH_ENTRY_PRIVATE_H__
#include <gtk/gtksearchentry.h>
+#include <gtk/gtktext.h>
G_BEGIN_DECLS
gboolean gtk_search_entry_is_keynav (guint keyval,
GdkModifierType state);
+GtkText *gtk_search_entry_get_text_widget (GtkSearchEntry *entry);
GtkEventController * gtk_search_entry_get_key_controller (GtkSearchEntry *entry);
G_END_DECLS