blueprint-compiler/tests/samples/gtkcolumnview.blp
James Westman 988e69ab25 lang: Allow ColumnView widgets to be built
Allow BuilderListItemFactory to contain Gtk.ColumnViewRow or
Gtk.ColumnViewCell templates, in addition to Gtk.ListItem templates.
This is necessary for people to use Gtk.ColumnView idiomatically in
Blueprint.

Fixes #157.
2024-05-02 20:19:00 -05:00

17 lines
308 B
Text

using Gtk 4.0;
ColumnView {
row-factory: BuilderListItemFactory {
template ColumnViewRow {}
};
ColumnViewColumn {
factory: BuilderListItemFactory {
template ColumnViewCell {
child: Label {
label: bind template.item as <$MyObject>.name;
};
}
};
}
}