mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Preserve child ordering in toplevel
The order of elements sometimes matters, so don't sort children by type.
This commit is contained in:
parent
c79d8dc396
commit
54237d7976
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ class UI(AstNode):
|
||||||
|
|
||||||
def emit_xml(self, xml: XmlEmitter):
|
def emit_xml(self, xml: XmlEmitter):
|
||||||
xml.start_tag("interface")
|
xml.start_tag("interface")
|
||||||
self.gtk_directive.emit_xml(xml)
|
for x in self.child_nodes:
|
||||||
for x in [*self.templates, *self.objects, *self.menus]:
|
|
||||||
x.emit_xml(xml)
|
x.emit_xml(xml)
|
||||||
xml.end_tag()
|
xml.end_tag()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue