diff --git a/src/collection_list.rs b/src/collection_list.rs index f4047e8..126aa70 100644 --- a/src/collection_list.rs +++ b/src/collection_list.rs @@ -8,14 +8,6 @@ pub struct CollectionListItem { name: String, } -impl CollectionListItem { - pub fn new(name: String) -> Self { - Self { - name, - } - } -} - #[relm4::factory(pub)] impl FactoryComponent for CollectionListItem { type Init = String; diff --git a/src/main.rs b/src/main.rs index e8f114f..4cdc63e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,6 +62,7 @@ impl SimpleComponent for AppModel { append_column = >k::ColumnViewColumn { set_title: Some("Name"), set_resizable: true, + set_expand: true, set_factory: Some(&factory1) }, append_column = >k::ColumnViewColumn {