Merge branch 'wip/velsinki/levelbar-support-offsets' into 'main'

language: Add Gtk.LevelBar offset syntax

See merge request GNOME/blueprint-compiler!247
This commit is contained in:
Matthijs Velsink 2025-06-14 19:36:04 +00:00
commit d37b387c5c
8 changed files with 198 additions and 0 deletions

View file

@ -374,6 +374,12 @@ class XmlOutput(OutputFormat):
xml.end_tag()
xml.end_tag()
elif isinstance(extension, ExtLevelBarOffsets):
xml.start_tag("offsets")
for offset in extension.offsets:
xml.put_self_closing("offset", name=offset.name, value=offset.value)
xml.end_tag()
elif isinstance(extension, ExtScaleMarks):
xml.start_tag("marks")
for mark in extension.marks: