From 848f4b50a0f1e831d5e78194083ca4c364d256b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 11 Aug 2026 13:13:17 -0700 Subject: [PATCH] SourceList: don't subclass SourceList --- src/FolderList/FolderList.vala | 3 ++- src/SourceList/SourceList.vala | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/FolderList/FolderList.vala b/src/FolderList/FolderList.vala index 65e19fe28..6e874cd8a 100644 --- a/src/FolderList/FolderList.vala +++ b/src/FolderList/FolderList.vala @@ -48,7 +48,8 @@ public class Mail.FolderList : Gtk.Box { source_list.root.add (session_source_item); var scrolled_window = new Gtk.ScrolledWindow (null, null) { - child = source_list + child = source_list, + hscrollbar_policy = NEVER }; var dialogs_section = new Menu (); diff --git a/src/SourceList/SourceList.vala b/src/SourceList/SourceList.vala index 6ed1ac2aa..6a28917a3 100644 --- a/src/SourceList/SourceList.vala +++ b/src/SourceList/SourceList.vala @@ -99,7 +99,7 @@ * @since 0.2 * @see Gtk.Paned */ -public class Mail.SourceList : Gtk.ScrolledWindow { +public class Mail.SourceList : Gtk.Bin { /** * = WORKING INTERNALS = @@ -1886,8 +1886,6 @@ public class Mail.SourceList : Gtk.ScrolledWindow { construct { tree = new Tree (data_model); - - set_policy (Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); child = tree; tree.item_selected.connect ((item) => item_selected (item));