language: Add Gtk.LevelBar offset syntax

Helps #8 along.
This commit is contained in:
Matthijs Velsink 2025-06-13 00:28:18 +02:00
parent 5c7fb03da7
commit c733b79683
8 changed files with 198 additions and 0 deletions

View file

@ -369,6 +369,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: