[glib/wip/doc-fixes: 11/11] docs: Clarify how to unset a GFileInfo attribute



commit 5640fce8ca893265a5a58e1c62044a3dc1a025fe
Author: David King <amigadave amigadave com>
Date:   Tue Feb 21 11:19:20 2012 +0000

    docs: Clarify how to unset a GFileInfo attribute
    
    https://bugzilla.gnome.org/show_bug.cgi?id=592666

 gio/gfileinfo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index 9456afa..c36b41c 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -1109,7 +1109,8 @@ _g_file_info_set_attribute_by_id (GFileInfo                 *info,
  * @type: a #GFileAttributeType
  * @value_p: pointer to the value
  *
- * Sets the @attribute to contain the given value, if possible.
+ * Sets the @attribute to contain the given value, if possible. To unset the
+ * attribute, pass %G_ATTRIBUTE_TYPE_INVALID for @type.
  **/
 void
 g_file_info_set_attribute (GFileInfo                 *info,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]