summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-02-23 04:41:42 +0100
committerTimm Bäder <mail@baedert.org>2019-02-23 04:42:01 +0100
commite54ce8f3281abf0579dec4cce1b4fd67e3c62736 (patch)
tree9d5dbf92479bdf1682c56a9968fd6a4009fc7a46 /gtk/gtktreeview.c
parent8d987be673686f9f3211b6d6039a06839d1b137b (diff)
downloadgtk+-e54ce8f3281abf0579dec4cce1b4fd67e3c62736.tar.gz
treeview: Don't assume search widget is a GtkEntry
Maybe it's a GtkText!
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r--gtk/gtktreeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index b9ec23b274..77de04413c 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -13793,7 +13793,7 @@ gtk_tree_view_search_window_hide (GtkWidget *search_window,
/* send focus-in event */
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE);
gtk_widget_hide (search_window);
- gtk_entry_set_text (GTK_ENTRY (tree_view->priv->search_entry), "");
+ gtk_editable_set_text (GTK_EDITABLE(tree_view->priv->search_entry), "");
send_focus_change (GTK_WIDGET (tree_view), device, TRUE);
}
}