Add missing annotation to g_file_set_attribute()
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 29 Nov 2011 11:00:38 +0000 (12:00 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 29 Nov 2011 11:01:25 +0000 (12:01 +0100)
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 <martin.pitt@ubuntu.com>
gio/gfile.c

index 811227e..86111d2 100644 (file)
@@ -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