forked from AuroraMiddleware/gtk
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:
parent
cb56bbe430
commit
609cb85f3a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user