mirror of
https://github.com/electron/electron.git
synced 2026-01-29 01:08:18 -05:00
Remove deprecated View::SetLayoutManager
https://chromium-review.googlesource.com/844760
This commit is contained in:
committed by
Samuel Attard
parent
f6648a0d4d
commit
4a38c2d800
@@ -29,7 +29,8 @@ MenuBar::MenuBar(views::View* window)
|
||||
: background_color_(kDefaultColor), window_(window) {
|
||||
RefreshColorCache();
|
||||
UpdateViewColors();
|
||||
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal));
|
||||
SetLayoutManager(std::make_unique<views::BoxLayout>(
|
||||
views::BoxLayout::kHorizontal));
|
||||
window_->GetFocusManager()->AddFocusChangeListener(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user