Closer to preferred use of layout facilities. Fingers crossed.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-08-14 16:53:20 +00:00
parent b7c167dbe2
commit c6cc22d032

View File

@ -18,7 +18,7 @@
#include <File.h>
#include <FindDirectory.h>
#include <GroupLayout.h>
#include <GroupLayoutBuilder.h>
#include <LayoutBuilder.h>
#include <Path.h>
#include <Roster.h>
#include <SeparatorView.h>
@ -61,14 +61,17 @@ ZippoWindow::ZippoWindow(BRect frame, BMessage* refs)
BSeparatorView* separator = new BSeparatorView(B_HORIZONTAL);
SetLayout(new BGroupLayout(B_VERTICAL));
AddChild(BGroupLayoutBuilder(B_VERTICAL, 10)
.Add(fActivityView)
BLayoutBuilder::Group<> group = BLayoutBuilder::Group<>();
group.AddGroup(B_VERTICAL, 10)
.Add(fActivityView)
.Add(fArchiveNameView)
.Add(fZipOutputView)
.Add(separator)
.Add(fStopButton)
.SetInsets(14, 14, 14, 14)
);
.End()
.End();
AddChild(group.View());
if (refs != NULL)
{