Add enum documentation and Since tag to the generated gir file

Fix gen-api-gtkdoc.py to also parse an enums detailed description, which may contain a `since` attribute.

This makes the enums documentation and `Since` attribute end up in the final .gir file.
This commit is contained in:
Tom A. Wagner
2023-08-25 13:50:39 +02:00
parent fa22101530
commit 3a4b91fad7

View File

@@ -271,6 +271,7 @@ class DoxyEnum(DoxyElement):
e = DoxyEnum(name, d)
e.add_brief(xml.find("briefdescription"))
e.add_detail(xml.find("detaileddescription"))
for p in xml.findall("enumvalue"):
e.add_member(p)
return e