emoji chooser: Match search terms better

Use g_str_match_string for better results.

cherry-pick of be2853e5de

https://gitlab.gnome.org/GNOME/gtk/issues/898
This commit is contained in:
Matthias Clasen 2018-05-03 20:18:48 -04:00 committed by Daniel Boles
parent cb56bbe430
commit 609cb85f3a

View File

@ -535,7 +535,7 @@ filter_func (GtkFlowBoxChild *child,
goto out;
g_variant_get_child (emoji_data, 1, "&s", &name);
res = strstr (name, text) != NULL;
res = g_str_match_string (text, name, TRUE);
out:
if (res)