After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690083 - gfileenumerator: Add a g_file_enumerator_get_child method
gfileenumerator: Add a g_file_enumerator_get_child method
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-12-12 09:55 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-12-14 02:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gfileenumerator: Add a g_file_enumerator_get_child method (4.44 KB, patch)
2012-12-12 09:55 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2012-12-12 09:55:26 UTC
See patch. This is a follow-up to bug #682989.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-12-12 09:55:28 UTC
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.
Comment 2 Colin Walters 2012-12-12 13:12:45 UTC
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)
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-12-14 02:41:45 UTC
Attachment 231326 [details] pushed as 3c87ab9 - gfileenumerator: Add a g_file_enumerator_get_child method


Pushed with suggested changes. Thanks!