treeview: Don't assume search widget is a GtkEntry

Maybe it's a GtkText!
This commit is contained in:
Timm Bäder 2019-02-23 04:41:42 +01:00
parent 8d987be673
commit e54ce8f328

View File

@ -13793,7 +13793,7 @@ gtk_tree_view_search_window_hide (GtkWidget *search_window,
/* send focus-in event */ /* send focus-in event */
send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE); send_focus_change (GTK_WIDGET (tree_view->priv->search_entry), device, FALSE);
gtk_widget_hide (search_window); 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); send_focus_change (GTK_WIDGET (tree_view), device, TRUE);
} }
} }