mirror of https://github.com/GNOME/gimp.git
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:
parent
99644ff5c9
commit
0d95b960c5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue