filenumerator: Add g_file_enumerator_iterate()

This is *significantly* more pleasant to use from C (while handling
errors and memory cleanup).

While we're here, change some ugly, leaky code in
tests/desktop-app-info.c to use it, in addition to a test case
in tests/file.c.

https://bugzilla.gnome.org/show_bug.cgi?id=661554
This commit is contained in:
Colin Walters
2015-02-12 18:20:14 -05:00
parent 9d6d30475b
commit 52cd62d946
5 changed files with 218 additions and 36 deletions

View File

@@ -220,6 +220,7 @@ g_file_get_type
<FILE>gfileenumerator</FILE>
<TITLE>GFileEnumerator</TITLE>
GFileEnumerator
g_file_enumerator_iterate
g_file_enumerator_next_file
g_file_enumerator_close
g_file_enumerator_next_files_async