mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add Gtk.Scale mark syntax
This commit is contained in:
parent
83d11ccb8c
commit
5a782c653b
12 changed files with 242 additions and 5 deletions
9
tests/samples/scale_marks.blp
Normal file
9
tests/samples/scale_marks.blp
Normal file
|
@ -0,0 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Scale {
|
||||
marks [
|
||||
mark (-1, bottom),
|
||||
mark (0, top, _("Hello, world!")),
|
||||
mark (2),
|
||||
]
|
||||
}
|
11
tests/samples/scale_marks.ui
Normal file
11
tests/samples/scale_marks.ui
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue