GNOME Bugzilla – Bug 619086
Hash tables need annotation of element types
Last modified: 2010-05-24 23:52:53 UTC
Created attachment 161443 [details] [review] Annotate hash tables element types I was playing with using soup in seed and noticed many hash tables do not have their elements types annotated. The attached patch should hopefully be all that is needed.
Comment on attachment 161443 [details] [review] Annotate hash tables element types >+++ b/libsoup/soup-value-utils.c >@@ -56,7 +56,7 @@ soup_value_hash_value_free (gpointer val) > * Creates a #GHashTable whose keys are strings and whose values > * are #GValue. > * >- * Return value: a new empty #GHashTable >+ * Return value: (element-type utf8 GType): a new empty #GHashTable All the soup_value_hash hashtables should be (element-type utf8 GValue), not GType. otherwise good to commit (modulo the caveat that already applies to lots of utf8 annotations in libsoup, which is that the strings aren't actually guaranteed to be utf8, and I need to do something about that...)
pushed with above fix