emoji chooser: Match search terms better

Use g_str_match_string for better results.
This commit is contained in:
Matthias Clasen
2018-05-03 20:18:48 -04:00
parent 0ab4bc80ad
commit be2853e5de

View File

@@ -497,7 +497,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)