[glib] Add missing annotation to g_file_set_attribute()
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add missing annotation to g_file_set_attribute()
- Date: Tue, 29 Nov 2011 11:01:44 +0000 (UTC)
commit 0627759331d857a3b99eec0ed2c13e5cf7f67130
Author: Michael Vogt <michael vogt ubuntu com>
Date: Tue Nov 29 12:00:38 2011 +0100
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 <martin pitt ubuntu com>
gio/gfile.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index 811227e..86111d2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]