mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Builder list factory
This commit is contained in:
parent
0cf9a8e4fc
commit
a2fb86bc31
9 changed files with 98 additions and 1 deletions
|
@ -304,6 +304,16 @@ class XmlOutput(OutputFormat):
|
|||
self._emit_value(value, xml)
|
||||
xml.end_tag()
|
||||
xml.end_tag()
|
||||
elif isinstance(extension, ListItemFactory):
|
||||
child_xml = XmlEmitter()
|
||||
child_xml.start_tag("interface")
|
||||
child_xml.start_tag("template", **{"class": "GtkListItem"})
|
||||
self._emit_object_or_template(extension, child_xml)
|
||||
child_xml.end_tag()
|
||||
child_xml.end_tag()
|
||||
xml.start_tag("property", name="bytes")
|
||||
xml.put_cdata(child_xml.result)
|
||||
xml.end_tag()
|
||||
|
||||
elif isinstance(extension, Styles):
|
||||
xml.start_tag("style")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue