mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
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.
17 lines
308 B
Text
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;
|
|
};
|
|
}
|
|
};
|
|
}
|
|
}
|