From 339c33a14f21786873d25b6cb67f399a883c8e83 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 14 Feb 2025 23:53:45 +0200 Subject: [PATCH] make columns resizable --- .../browser/window/tab/item/page/content/directory/column.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/browser/window/tab/item/page/content/directory/column.rs b/src/app/browser/window/tab/item/page/content/directory/column.rs index 025b4d43..748a15bf 100644 --- a/src/app/browser/window/tab/item/page/content/directory/column.rs +++ b/src/app/browser/window/tab/item/page/content/directory/column.rs @@ -18,6 +18,7 @@ impl Column for gtk::ColumnViewColumn { ColumnViewColumn::builder() .title("Type") + .resizable(false) .factory(&{ let factory = SignalListItemFactory::new(); factory.connect_bind(|_, this| { @@ -61,6 +62,7 @@ impl Column for gtk::ColumnViewColumn { fn name() -> Self { gtk::ColumnViewColumn::builder() .expand(true) + .resizable(true) .title("Name") .factory(&{ let factory = gtk::SignalListItemFactory::new(); @@ -96,6 +98,7 @@ impl Column for gtk::ColumnViewColumn { fn size() -> Self { gtk::ColumnViewColumn::builder() .expand(true) + .resizable(true) .title("Size") .factory(&{ let factory = gtk::SignalListItemFactory::new(); @@ -121,6 +124,7 @@ impl Column for gtk::ColumnViewColumn { fn content_type() -> Self { gtk::ColumnViewColumn::builder() .expand(true) + .resizable(true) .title("Content Type") .factory(&{ let factory = gtk::SignalListItemFactory::new(); @@ -163,6 +167,7 @@ impl Column for gtk::ColumnViewColumn { fn modification_date_time() -> Self { gtk::ColumnViewColumn::builder() .expand(true) + .resizable(true) .title("Modified") .factory(&{ let factory = gtk::SignalListItemFactory::new();