mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
parent
f6eacaa3d9
commit
b9fdc5a5f1
4 changed files with 9 additions and 10 deletions
|
@ -97,13 +97,15 @@ class Object(AstNode):
|
|||
if child.response_id
|
||||
]
|
||||
|
||||
def emit_xml(self, xml: XmlEmitter):
|
||||
from .gtkbuilder_child import Child
|
||||
|
||||
def emit_start_tag(self, xml: XmlEmitter):
|
||||
xml.start_tag("object", **{
|
||||
"class": self.gir_class or self.tokens["class_name"],
|
||||
"id": self.tokens["id"],
|
||||
})
|
||||
|
||||
def emit_xml(self, xml: XmlEmitter):
|
||||
self.emit_start_tag(xml)
|
||||
|
||||
for child in self.children:
|
||||
child.emit_xml(xml)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue