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:
parent
6c1452071c
commit
2bf1592a70
@ -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_();
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user