[gtk/text: 18/24] file chooser: Use editable api on the search entry
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/text: 18/24] file chooser: Use editable api on the search entry
- Date: Mon, 18 Feb 2019 05:05:14 +0000 (UTC)
commit 23d408b6d5629b951a0daaf0b2b84e0fa40bf292
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]