From f71f5e2b2923d7b1d61702acdbd02a3c84f30ded Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sat, 2 May 2009 23:44:05 +0000 Subject: [PATCH] As suggested in ticket #3717, I commented out the tabView in fonts preflet. I added a BBox with fancy borders to group the controls together, as I didn't like the view. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30594 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/fonts/MainWindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/preferences/fonts/MainWindow.cpp b/src/preferences/fonts/MainWindow.cpp index e352a42697..d45b62f83d 100644 --- a/src/preferences/fonts/MainWindow.cpp +++ b/src/preferences/fonts/MainWindow.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -46,20 +47,24 @@ MainWindow::MainWindow() new BMessage(kMsgRevert), B_WILL_DRAW); fRevertButton->SetEnabled(false); - BTabView* tabView = new BTabView("tabview", B_WIDTH_FROM_LABEL); +// BTabView* tabView = new BTabView("tabview", B_WIDTH_FROM_LABEL); + + BBox* box = new BBox(B_FANCY_BORDER, NULL); fFontsView = new FontView(); - tabView->AddTab(fFontsView); +// tabView->AddTab(fFontsView); + box->AddChild(fFontsView); fFontsView->UpdateFonts(); SetLayout(new BGroupLayout(B_VERTICAL)); - const float kInset = 8; + const float kInset = 10; AddChild(BGroupLayoutBuilder(B_VERTICAL) - .Add(tabView) + .Add(box) +// .Add(tabView) .Add(BSpaceLayoutItem::CreateVerticalStrut(kInset)) .Add(BGroupLayoutBuilder(B_HORIZONTAL) .Add(fDefaultsButton)