Rework layout-enabled contructor for BMCMenuBar

Was passing !fixedSize into the view flags of BMenuBar, which made no sense.
Stop doing that, set fixedSize to true instead.

Remove the fixedSize parameter from this contructor, it's too late for that.
This commit is contained in:
John Scipione 2013-05-06 17:00:42 -04:00
parent 6c1452071c
commit 2bf1592a70
2 changed files with 4 additions and 5 deletions

View File

@ -37,8 +37,7 @@ class _BMCMenuBar_ : public BMenuBar {
public:
_BMCMenuBar_(BRect frame, bool fixedSize,
BMenuField* menuField);
_BMCMenuBar_(bool fixedSize,
BMenuField* menuField);
_BMCMenuBar_(BMenuField* menuField);
_BMCMenuBar_(BMessage* data);
virtual ~_BMCMenuBar_();

View File

@ -69,11 +69,11 @@ _BMCMenuBar_::_BMCMenuBar_(BRect frame, bool fixedSize, BMenuField* menuField)
}
_BMCMenuBar_::_BMCMenuBar_(bool fixedSize, BMenuField* menuField)
_BMCMenuBar_::_BMCMenuBar_(BMenuField* menuField)
:
BMenuBar("_mc_mb_", B_ITEMS_IN_ROW, !fixedSize),
BMenuBar("_mc_mb_", B_ITEMS_IN_ROW),
fMenuField(menuField),
fFixedSize(fixedSize),
fFixedSize(true),
fRunner(NULL),
fShowPopUpMarker(true)
{