From 56fe9fad2311909291e9ddec035589e702c24d43 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 26 Apr 2013 19:31:37 -0400 Subject: [PATCH] Refactor attaching FindPanel to FindWindow --- src/kits/tracker/FindPanel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/FindPanel.cpp b/src/kits/tracker/FindPanel.cpp index c9db671a28..3b358a3ecd 100644 --- a/src/kits/tracker/FindPanel.cpp +++ b/src/kits/tracker/FindPanel.cpp @@ -226,9 +226,8 @@ FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly) fBackground = new FindPanel(fFile, this, fFromTemplate, fEditTemplateOnly); - BLayoutBuilder::Group<>(this, B_VERTICAL, 10.0) - .SetInsets(0, 0, 0, 0) - .Add(fBackground); + SetLayout(new BGroupLayout(B_VERTICAL)); + GetLayout()->AddView(fBackground); CenterOnScreen(); }