Add GtkComboBoxText items

This commit is contained in:
James Westman 2021-11-12 18:40:26 -06:00
parent f1e1811e1f
commit aa447466c0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
12 changed files with 137 additions and 17 deletions

View file

@ -0,0 +1,9 @@
using Gtk 4.0;
ComboBoxText {
items [
"Hello, world!",
_("Hello!"),
item_id: "item",
];
}

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkComboBoxText">
<items>
<item>Hello, world!</item>
<item translatable="true">Hello!</item>
<item id="item_id">item</item>
</items>
</object>
</interface>