From e54ce8f3281abf0579dec4cce1b4fd67e3c62736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 23 Feb 2019 04:41:42 +0100 Subject: [PATCH] treeview: Don't assume search widget is a GtkEntry Maybe it's a GtkText! --- gtk/gtktreeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }