tree-wide: Port to g_file_enumerator_iterate()

Unlike OSTree, I'm going to assert we can take a hard dependency
on the version of GLib that has it.

Closes: #483
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-10-12 15:21:31 -04:00 committed by Atomic Bot
parent afb7ad6bbe
commit 4542778648
2 changed files with 6 additions and 6 deletions

View File

@ -125,8 +125,8 @@ dir_contains_uid_or_gid (GFile *root,
GFileInfo *file_info;
GFile *child;
if (!gs_file_enumerator_iterate (dir_enum, &file_info, &child,
cancellable, error))
if (!g_file_enumerator_iterate (dir_enum, &file_info, &child,
cancellable, error))
goto out;
if (!file_info)
break;

View File

@ -198,8 +198,8 @@ find_kernel_and_initramfs_in_bootdir (GFile *bootdir,
GFileInfo *file_info;
GFile *child;
if (!gs_file_enumerator_iterate (direnum, &file_info, &child,
cancellable, error))
if (!g_file_enumerator_iterate (direnum, &file_info, &child,
cancellable, error))
goto out;
if (!file_info)
break;
@ -262,8 +262,8 @@ find_ensure_one_subdirectory (GFile *d,
GFileInfo *file_info;
GFile *child;
if (!gs_file_enumerator_iterate (direnum, &file_info, &child,
cancellable, error))
if (!g_file_enumerator_iterate (direnum, &file_info, &child,
cancellable, error))
goto out;
if (!file_info)
break;