BuilderListItemFactory as ListView.header-factory should template ListHeader
a blueprint with a ListView
with header-factory set to BuilderListItemFactory
ListView results {
header-factory: BuilderListItemFactory {
template ListHeader {
child: Label {};
}
};
factory: BuilderListItemFactory {
template ListItem {
child: Label {);
}
};
blueprint compiler (ver 0.10.0) complains:
error: Only Gtk.ListItem is allowed as a type here
but replacing template ListHeader
with template ListItem
, Gtk complains:
Gtk-CRITICAL **: 12:56:12.103: Error building template for list item: .:0:0 Parsed template definition for type 'GtkListItem', expected type 'GtkListHeader'