From 003e7a70e80d508458c7a9d4cc76b84a1eb35f94 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 20 Jul 2012 10:40:56 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index 310276d3b..6e8dfa14f 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