[glib] Revert unintential IAPI break for g_key_file_load_from_data()



commit 003e7a70e80d508458c7a9d4cc76b84a1eb35f94
Author: Colin Walters <walters verbum org>
Date:   Fri Jul 20 10:40:56 2012 -0400

    Revert unintential IAPI break for g_key_file_load_from_data()
    
    The old (length) annotation actually wasn't being read.  Changing
    it to an array was telling g-i that it was an array of utf8, which
    is clearly not true.
    
    We *could* add (element-type guint8), but that would change it to a
    byte array, as opposed to the original utf8 version.
    
    Just removing the annotation should bring us back to where we
    were, which was fine.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680310

 glib/gkeyfile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
index 310276d..6e8dfa1 100644
--- a/glib/gkeyfile.c
+++ b/glib/gkeyfile.c
@@ -861,7 +861,7 @@ g_key_file_load_from_file (GKeyFile       *key_file,
 /**
  * g_key_file_load_from_data:
  * @key_file: an empty #GKeyFile struct
- * @data: (array length=length): key file loaded in memory
+ * @data: key file loaded in memory
  * @length: the length of @data in bytes (or -1 if data is nul-terminated)
  * @flags: flags from #GKeyFileFlags
  * @error: return location for a #GError, or %NULL



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