Adapt to recent layout API changes. (Untested)
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@543 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
a4841f3a5d
commit
a071b4d041
@ -431,6 +431,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
|
||||
.SetInsets(kInsetSpacing, kInsetSpacing,
|
||||
kInsetSpacing, kInsetSpacing)
|
||||
)
|
||||
.TopView()
|
||||
;
|
||||
|
||||
// Navigation group
|
||||
@ -445,6 +446,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
|
||||
kInsetSpacing)
|
||||
)
|
||||
.Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER))
|
||||
.TopView()
|
||||
;
|
||||
|
||||
// Status bar group
|
||||
@ -456,6 +458,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
|
||||
.AddStrut(12 - kElementSpacing)
|
||||
.SetInsets(kInsetSpacing, 0, kInsetSpacing, 0)
|
||||
)
|
||||
.TopView()
|
||||
;
|
||||
|
||||
BitmapButton* toggleFullscreenButton = new BitmapButton(kWindowIconBits,
|
||||
@ -466,6 +469,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
|
||||
BView* menuBarGroup = BGroupLayoutBuilder(B_HORIZONTAL)
|
||||
.Add(mainMenu)
|
||||
.Add(toggleFullscreenButton, 0.0f)
|
||||
.TopView()
|
||||
;
|
||||
|
||||
// Layout
|
||||
|
@ -266,12 +266,14 @@ DownloadProgressView::Init(BMessage* archive)
|
||||
BView* verticalGroup = BGroupLayoutBuilder(B_VERTICAL, 3)
|
||||
.Add(fStatusBar)
|
||||
.Add(fInfoView)
|
||||
.TopView()
|
||||
;
|
||||
verticalGroup->SetViewColor(ViewColor());
|
||||
layout->AddView(verticalGroup);
|
||||
verticalGroup = BGroupLayoutBuilder(B_VERTICAL, 3)
|
||||
.Add(fTopButton)
|
||||
.Add(fBottomButton)
|
||||
.TopView()
|
||||
;
|
||||
verticalGroup->SetViewColor(ViewColor());
|
||||
layout->AddView(verticalGroup);
|
||||
|
@ -365,6 +365,8 @@ SettingsWindow::_CreateGeneralPage(float spacing)
|
||||
.Add(BSpaceLayoutItem::CreateHorizontalStrut(spacing))
|
||||
|
||||
.SetInsets(spacing, spacing, spacing, spacing)
|
||||
|
||||
.TopView()
|
||||
;
|
||||
view->SetName(B_TRANSLATE("General"));
|
||||
return view;
|
||||
@ -422,6 +424,8 @@ SettingsWindow::_CreateFontsPage(float spacing)
|
||||
.Add(fFixedSizesMenu->CreateMenuBarLayoutItem(), 1, 13)
|
||||
|
||||
.SetInsets(spacing, spacing, spacing, spacing)
|
||||
|
||||
.View()
|
||||
;
|
||||
view->SetName(B_TRANSLATE("Fonts"));
|
||||
return view;
|
||||
@ -464,6 +468,8 @@ SettingsWindow::_CreateProxyPage(float spacing)
|
||||
.Add(BSpaceLayoutItem::CreateGlue())
|
||||
|
||||
.SetInsets(spacing, spacing, spacing, spacing)
|
||||
|
||||
.TopView()
|
||||
;
|
||||
view->SetName(B_TRANSLATE("Proxy server"));
|
||||
return view;
|
||||
|
Loading…
Reference in New Issue
Block a user