[gtk/text: 24/30] file chooser: Use editable api on the search entry



commit 00a089df46b1263965dbe2f97a0f34d22797fb9b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 17 14:48:44 2019 -0500

    file chooser: Use editable api on the search entry

 gtk/gtkfilechooserwidget.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 707f40139d..944e37a121 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7084,7 +7084,7 @@ search_stop_searching (GtkFileChooserWidget *impl,
 
   if (remove_query && priv->search_entry)
     {
-      gtk_entry_set_text (GTK_ENTRY (priv->search_entry), "");
+      gtk_editable_set_text (GTK_EDITABLE (priv->search_entry), "");
     }
 
   if (priv->search_engine)
@@ -7218,7 +7218,7 @@ search_entry_activate_cb (GtkFileChooserWidget *impl)
   if (priv->operation_mode != OPERATION_MODE_SEARCH)
     return;
 
-  text = gtk_entry_get_text (GTK_ENTRY (priv->search_entry));
+  text = gtk_editable_get_text (GTK_EDITABLE (priv->search_entry));
 
   /* reset any existing query object */
   g_set_object (&priv->search_query, NULL);
@@ -7254,7 +7254,7 @@ search_setup_widgets (GtkFileChooserWidget *impl)
       query = gtk_query_get_text (priv->search_query);
       if (query)
         {
-          gtk_entry_set_text (GTK_ENTRY (priv->search_entry), query);
+          gtk_editable_set_text (GTK_EDITABLE (priv->search_entry), query);
           search_start_query (impl, query);
         }
       else


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