GListModel should have more advanced filtering helper
@xclaesse
Submitted by Xavier Claessens Link to original bug (#710204)
Description
GLib now gained advanced matching function helpers (see bug #709753): g_str_tokenize_and_fold() g_str_match_string()
I think GtkListBox should make good use of them to help filtering the list when user search terms. We could add:
void gtk_list_box_row_add_search_text(GtkListBoxRow *row, const gchar *text, const gchar *translit_locale); void gtk_list_box_set_filter_text(GtkListBox *list, const gchar *text, gboolean accept_alternates);
The internal function gtk_list_box_apply_filter() could then do filtering based on the text, similar than what g_str_match_string() does but with pre-computed tokens.