From 0627759331d857a3b99eec0ed2c13e5cf7f67130 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 29 Nov 2011 12:00:38 +0100 Subject: [PATCH] Add missing annotation to g_file_set_attribute() g_file_set_attribute() also permits a NULL value for value_p, and requires it to be NULL to unset it. Also fix the wrong variable name in the documentation. Signed-off-by: Martin Pitt --- gio/gfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gfile.c b/gio/gfile.c index 811227e04..86111d2f2 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -3826,7 +3826,7 @@ g_file_query_writable_namespaces (GFile *file, * @file: input #GFile. * @attribute: a string containing the attribute's name. * @type: The type of the attribute - * @value_p: a pointer to the value (or the pointer itself if the type is a pointer type) + * @value_p: (allow-none): a pointer to the value (or the pointer itself if the type is a pointer type) * @flags: a set of #GFileQueryInfoFlags. * @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore. * @error: a #GError, or %NULL @@ -3834,7 +3834,7 @@ g_file_query_writable_namespaces (GFile *file, * Sets an attribute in the file with attribute name @attribute to @value. * * Some attributes can be unset by setting @attribute to - * %G_FILE_ATTRIBUTE_TYPE_INVALID and @value to %NULL. + * %G_FILE_ATTRIBUTE_TYPE_INVALID and @value_p to %NULL. * * If @cancellable is not %NULL, then the operation can be cancelled by * triggering the cancellable object from another thread. If the operation