app: replace deprecated GLib function.

This fixes:

> app/core/gimpitemlist.c:632:7: warning: ‘g_pattern_match_string’ is deprecated: Use 'g_pattern_spec_match_string' instead [-Wdeprecated-declarations]

The new function appeared in GLib 2.70 which is our current minimum GLib
requirement, so the replacement is fine.
This commit is contained in:
Jehan 2023-04-20 23:57:15 +02:00
parent 99644ff5c9
commit 0d95b960c5
1 changed files with 1 additions and 2 deletions

View File

@ -629,8 +629,7 @@ gimp_item_list_get_items_by_glob (GimpItemList *set,
spec = g_pattern_spec_new (pattern);
for (iter = items; iter; iter = iter->next)
{
if (g_pattern_match_string (spec,
gimp_object_get_name (iter->data)))
if (g_pattern_spec_match_string (spec, gimp_object_get_name (iter->data)))
match = g_list_prepend (match, iter->data);
}
g_pattern_spec_free (spec);