From 295dcbadd2f5c852dfcd02229cc651e9975852de Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Tue, 16 Jun 2026 13:03:50 +0100 Subject: [PATCH] Replace Bin with Box as base class for BranchListBox --- src/Dialogs/BranchActions/BranchListBox.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Dialogs/BranchActions/BranchListBox.vala b/src/Dialogs/BranchActions/BranchListBox.vala index efd786228..7b2a5f069 100644 --- a/src/Dialogs/BranchActions/BranchListBox.vala +++ b/src/Dialogs/BranchActions/BranchListBox.vala @@ -4,7 +4,7 @@ * * Authored by: Jeremy Wootten */ -private class Scratch.Dialogs.BranchListBox : Gtk.Bin { +private class Scratch.Dialogs.BranchListBox : Gtk.Box { public signal void branch_changed (string branch_name); @@ -31,6 +31,9 @@ private class Scratch.Dialogs.BranchListBox : Gtk.Bin { } construct { + orientation = VERTICAL; + spacing = 6; + list_box = new Gtk.ListBox () { activate_on_single_click = false }; @@ -47,12 +50,6 @@ private class Scratch.Dialogs.BranchListBox : Gtk.Bin { placeholder_text = _("Enter search term") }; - var box = new Gtk.Box (VERTICAL, 6); - box.add (search_entry); - box.add (scrolled_window); - - child = box; - recent_header = new Granite.HeaderLabel (_("Recent Branches")); local_header = new Granite.HeaderLabel (_("Local Branches")); remote_header = new Granite.HeaderLabel (_("Remote Branches")); @@ -91,6 +88,9 @@ private class Scratch.Dialogs.BranchListBox : Gtk.Bin { search_entry.activate.connect (() => { dialog.page_activated (); }); + + add (search_entry); + add (scrolled_window); } public BranchNameRow? get_selected_row () {