From 6dc473d0a374b1a44100e81bf8ee5ac5d97f4ade Mon Sep 17 00:00:00 2001 From: heliguy Date: Thu, 12 Dec 2024 17:59:31 -0500 Subject: [PATCH] Remove gtk warning about improper sidebar fraction amount --- src/main_window/window.blp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main_window/window.blp b/src/main_window/window.blp index e59de24..6c73b0a 100644 --- a/src/main_window/window.blp +++ b/src/main_window/window.blp @@ -10,7 +10,7 @@ template $WarehouseWindow: Adw.ApplicationWindow { condition ("max-width: 865") setters { main_split.collapsed: true; - main_split.min-sidebar-width: 0.2; + main_split.max-sidebar-width: 280; } } content: @@ -30,8 +30,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { Adw.OverlaySplitView main_split { collapsed: false; show-sidebar: true; - sidebar-width-fraction: 999999999; min-sidebar-width: 250; + max-sidebar-width: 999999999; sidebar: Adw.NavigationPage { title: "Warehouse"; @@ -65,6 +65,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { } Label { label: _("Packages"); + wrap: true; + wrap-mode: word_char; } } Box remotes_row { @@ -78,6 +80,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { } Label { label: _("Remotes"); + wrap: true; + wrap-mode: word_char; } } @@ -92,6 +96,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { } Label { label: _("User Data"); + wrap: true; + wrap-mode: word_char; } } Box snapshots_row { @@ -105,6 +111,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { } Label { label: _("Snapshots"); + wrap: true; + wrap-mode: word_char; } } Box install_row { @@ -118,6 +126,8 @@ template $WarehouseWindow: Adw.ApplicationWindow { } Label { label: _("Install Packages"); + wrap: true; + wrap-mode: word_char; } } }