GNOME Bugzilla – Bug 690083
gfileenumerator: Add a g_file_enumerator_get_child method
Last modified: 2012-12-14 02:41:48 UTC
See patch. This is a follow-up to bug #682989.
Created attachment 231326 [details] [review] gfileenumerator: Add a g_file_enumerator_get_child method This is a new convenience method designed to simplify some use cases of GFileEnumerator, by making it easy to get the next file from a file enumerator.
Review of attachment 231326 [details] [review]: ::: gio/gfileenumerator.c @@ +597,3 @@ + * + * Get the #GFile for a respective #GFileInfo gotten while iterating + * over the enumerator. Return a new #GFile which refers to the file named by @info in the source directory of @enumerator. This function is primarily intended to be used inside loops with g_file_enumerator_next_file(). @@ +606,3 @@ + * ]| + * + * Returns: (transfer none): a #GFile for the #GFileInfo passed it. (transfer full)
Attachment 231326 [details] pushed as 3c87ab9 - gfileenumerator: Add a g_file_enumerator_get_child method Pushed with suggested changes. Thanks!