mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
decompiler: Support sub-templates
Support GtkBuilderListItemFactory syntax by decompiling the nested XML, rather than preserving it as a string literal.
This commit is contained in:
parent
25d9826aea
commit
21d5ce86e9
6 changed files with 60 additions and 20 deletions
11
tests/samples/list_factory_dec.blp
Normal file
11
tests/samples/list_factory_dec.blp
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
ListView {
|
||||
factory: BuilderListItemFactory list_item_factory {
|
||||
template ListItem {
|
||||
child: Label {
|
||||
label: bind template.item as <$MyObject>.name;
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue