Add Gtk.Scale mark syntax

This commit is contained in:
James Westman 2023-05-13 19:39:48 -05:00
parent 83d11ccb8c
commit 5a782c653b
12 changed files with 242 additions and 5 deletions

View file

@ -0,0 +1,9 @@
using Gtk 4.0;
Scale {
marks [
mark (-1, bottom),
mark (0, top, _("Hello, world!")),
mark (2),
]
}

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkScale">
<marks>
<mark value="-1" position="bottom"></mark>
<mark value="0" position="top" translatable="true">Hello, world!</mark>
<mark value="2"></mark>
</marks>
</object>
</interface>