xwayland-grab-keyboard: Switch to g_pattern_spec_match_string()

The g_pattern_match_string() variant is deprecated, switch to the
properly namespaced one.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1941>
This commit is contained in:
Jonas Ådahl
2021-07-27 17:33:38 +02:00
committed by Marge Bot
parent 641bed44a3
commit 23bebf3385
3 changed files with 8 additions and 4 deletions

View File

@ -182,8 +182,8 @@ application_is_in_pattern_array (MetaWindow *window,
{
GPatternSpec *pattern = (GPatternSpec *) g_ptr_array_index (pattern_array, i);
if (g_pattern_match_string (pattern, class) ||
g_pattern_match_string (pattern, name))
if (g_pattern_spec_match_string (pattern, class) ||
g_pattern_spec_match_string (pattern, name))
return TRUE;
}