Commit 62847494 authored by Philip Withnall's avatar Philip Withnall

gfile: Document usefulness of g_file_dup()

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>

GNOME/glib#807
parent 40a84b3d
......@@ -702,6 +702,11 @@ g_file_get_parse_name (GFile *file)
* the actual file or directory represented by the #GFile; see
* g_file_copy() if attempting to copy a file.
*
* g_file_dup() is useful when a second handle is needed to the same underlying
* file, for use in a separate thread (#GFile is not thread-safe). For use
* within the same thread, use g_object_ref() to increment the existing object’s
* reference count.
*
* This call does no blocking I/O.
*
* Returns: (transfer full): a new #GFile that is a duplicate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment