[gtk] search entry: Add private api to get the text widget



commit b303c20570cc491bfd650b1780ed166dea18920f
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 20 10:29:26 2019 -0500

    search entry: Add private api to get the text widget
    
    We need this to do some custom setup in the Emoji chooser.

 gtk/gtksearchentry.c        | 8 ++++++++
 gtk/gtksearchentryprivate.h | 2 ++
 2 files changed, 10 insertions(+)
---
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


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