mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add string lists
This commit is contained in:
parent
aa447466c0
commit
2a18273c80
7 changed files with 124 additions and 2 deletions
8
tests/samples/string_list.blp
Normal file
8
tests/samples/string_list.blp
Normal file
|
@ -0,0 +1,8 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
StringList {
|
||||
strings [
|
||||
"Hello, world!",
|
||||
_("Hello!"),
|
||||
];
|
||||
}
|
10
tests/samples/string_list.ui
Normal file
10
tests/samples/string_list.ui
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Hello, world!</item>
|
||||
<item translatable="true">Hello!</item>
|
||||
</items>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue