From 95cd591fb7e855d280505168444894e729bb39f8 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 20 Oct 2013 20:49:22 +0200 Subject: giscanner: Include field documentation Structure field documentation was not being included in the gir file. https://bugzilla.gnome.org/show_bug.cgi?id=710562 --- giscanner/maintransformer.py | 2 +- tests/scanner/Regress-1.0-expected.gir | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 08783131..67cbec83 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -743,7 +743,7 @@ class MainTransformer(object): type_annotation = tag.annotations.get(ANN_TYPE) if type_annotation: field.type = self._transformer.create_type_from_user_string(type_annotation[0]) - + field.doc = tag.description try: self._adjust_container_type(parent, field, tag.annotations) except AttributeError, ex: diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 925fe538..a16205bc 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -90,14 +90,17 @@ and/or use gtk-doc annotations. --> This is a struct for testing field documentation and annotations + Some documentation + an array of length @len + the length of array -- cgit v1.2.1