mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add GtkComboBoxText items
This commit is contained in:
parent
f1e1811e1f
commit
aa447466c0
12 changed files with 137 additions and 17 deletions
9
tests/samples/combo_box_text.blp
Normal file
9
tests/samples/combo_box_text.blp
Normal file
|
@ -0,0 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
ComboBoxText {
|
||||
items [
|
||||
"Hello, world!",
|
||||
_("Hello!"),
|
||||
item_id: "item",
|
||||
];
|
||||
}
|
11
tests/samples/combo_box_text.ui
Normal file
11
tests/samples/combo_box_text.ui
Normal 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>
|
|
@ -95,6 +95,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample("accessibility")
|
||||
self.assert_sample("binding")
|
||||
self.assert_sample("child_type")
|
||||
self.assert_sample("combo_box_text")
|
||||
self.assert_sample("file_filter")
|
||||
self.assert_sample("flags")
|
||||
self.assert_sample("id_prop")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue